dcsimg
Saving snapshot of a Frame object as an image file
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Saurav_Ganguly
Posted On:   Thursday, April 26, 2001 10:26 PM

I have a window (a Frame object) on which a few circles are displayed. I want to the save the snapshot of the window as an image file for later use.
I have used JPEGImageEncoder
for the purpose. However, the .jpg file
that is saved always has its background changed to black; the circles retain their individual colors.
What is the way out?

Re: Saving snapshot of a Frame object as an image file

Posted By:   Subbu_Lakshminarayanan  
Posted On:   Monday, December 3, 2001 02:44 PM

paintAll() instead of paint() might help...

Re: Saving snapshot of a Frame object as an image file

Posted By:   Scott_Stanchfield  
Posted On:   Sunday, May 6, 2001 06:26 AM

Search the AWT and Swing FAQs for GIF or JPG

Re: Saving snapshot of a Frame object as an image file

Posted By:   venkatesha_subbegowda  
Posted On:   Friday, May 4, 2001 04:36 PM

You can do this very easily by pressing
PrintScrn/SysRg key which prints sreen image as it looks to the clippboard.
Then open the MS Paint software and
click the paste option on the menu.
It will be saved as a Bitmap file.
About | Sitemap | Contact