how to save a Frame to .JPG file?
Hi, my problem is:
Need execute a application and not display this application on screen, but need save the main Frame as image (JPG or other format) in one archive, or draw it in a variable in memory to use her as a texture of an object 3D.
Please help me. How i can do this?
JFrame.createImage() will give you an Image (not sure if you can do it before it's on screen). you can write jpegs with the 1.4 ImageIO classes (for some older versions, the classes for writing jpegs are someplace else)
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center