Skip to Main Content

Java Programming

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!

setting a color to transparent in GIF file

807591Jun 20 2008 — edited Jun 20 2008
Does anyone know how to set a color to be transparent in a GIF file using pure Java code (or is this even possible). I am using ImageIO to write a buffered image to file in GIF format and would like to be able to tell it a certain color to show as transparent (since GIF has only 1bit alpha). and I know this is done easier using PNG format, but for my own curiosity I want to try to do it this way. Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 18 2008
Added on Jun 20 2008
2 comments
529 views