A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
how to get image from JPanel
Joined: Mar 14, 2012
Apr 04, 2012 06:08:51
So, as I understood(may be not correctly) in order to save an image I need a bufferedImage to read from some image like
BufferedImage bi = getMyImage();
bi = ImageIO.read(new File("bld.jpg"));
but if I don't have an image I mean I have it but on my
and it is exactly the image that I want to save how can I do then???
Joined: Oct 27, 2005
Apr 04, 2012 10:28:35
How did you get it onto your
? Is it an
wrapped in a
? Or did you create it in paintComponent?
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: how to get image from JPanel
applet x/y coordinates
adding images to JPanel ***************URGENT
After screen Capture(to a Gif File)?????????
Writing Image onto a WordDoc
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013