Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to reduce the number of colors in an image?

843807Jun 10 2001 — edited Jul 17 2001
Does anybody know how to reduce the number of colors in a BufferedImage WITHOUT using an external API.
I want to save images in GIF format but I need to reduce the colors to 255.
I only need this function and don't want to bundle something like the Java Advanced Image API just for this. Does anybody know if this can be done with the java.awt.image.ColorConvertOp for instance?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2001
Added on Jun 10 2001
3 comments
311 views