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)
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL