I need to load some ARGB images, convert them to 256 color with alpha value(I just need an alpha value of 1 or 0 not a whole channel) , and then write a png out of those. If i just create a BufferedImage with an IndexedColorModel, the result looks bad, so I have to apply some quantization algorithms to get the best palette for the image. How can I create an optimized palette, and how can I create a new bufferedImage out of this?
What java classes can I use for this purposes, and please wirte me a concrete example how to do it too!
Thanks!
2007-02-13
22:01:01
·
3 answers
·
asked by
szabo l
1
in
Computers & Internet
➔ Programming & Design