Quote:
Originally Posted by dreamers
ok i found out how to get the clear back ground for people who are getting the black one.
when you index the image, instead of the colour being 256 when you index it change it to 146. it should work then.
|
The palette can contain 256 colors. The number doesnt matter as long as it is <= 256; what matters is that the image is converted from ARGB or RGB colorspace to indexed colorspace (basically millions of colors -> 256 or less specific colors).
If you are getting a black background, it means that you are (1) converting the image to RGB colorspace, which removes the alpha channel, or (2) indexing the palette without alpha. Fireworks and Gimp are two of the few programs capable of creating images with alpha palettes; I know that this is possible in Fireworks as I use it all the time for converting icons.
My appologies if this is redundant, but i just spent three days strait interpreting java's ImageIO and ColorModel libraries to create a converter, and I thought I would share.