Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

Saving Images in Java

I am developing a software wherein I have to modify the pixels of an image(gif format) and store the modified image in an Image object.Now I want to know how to save this Image object on to the hard disk retaining the gif format along with the changes made.
0
qdil
Asked:
qdil
1 Solution
 
bobbit31Commented:
0
 
xxMariusxxCommented:
Sun has an API for this.

http://java.sun.com/products/jimi/
0
 
xxMariusxxCommented:
Sorry...JIMI is a 1.1 implementation.  For Java 2, use JAI (Java Advanced Imaging)

Homepage:
http://java.sun.com/products/java-media/jai/

Javadoc API:
http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/index.html
0
 
yongsingCommented:
>> For Java 2, use JAI (Java Advanced Imaging)

JAI does not allow saving of images in GIF format.
0
 
girionisCommented:
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- points to bobbit31

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now