how to save a Frame to .JPG file?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how to save a Frame to .JPG file?

  1. #1
    Join Date
    Jun 2004
    Posts
    2

    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?

    Thanks.

  2. #2
    Join Date
    Jun 2004
    Posts
    14
    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center