Transmogrify images (in ICO format)

K

Kai Grossjohann

I gather that Java Advanced Imaging is what I need for processing
images.

What I have is a format, a bunch of bytes, and a bit. The format is
either bmp or ico. It says how to interpret the bunch of bytes. The
bit says whether to use transparency. "Using transparency" means
that the color of the top left pixel is considered the transparent
color.

The objective is to send something to a web browser that the web
browser groks and will display correctly.

If the transparency bit is off, I can just send the bunch of bytes to
the browser with MIME type image/bmp or image/x-icon, and Bob's my
uncle.

But if the transparency bit is on, then I need to do something.
http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/
mentions BMP, so I guess I'll be able to do the BMP dance.

But what do I do about ICO?

(I understand that ICO supports transparency. If the image is
transparent already, then I don't need to do anything. But if the
image is not transparent, then I'll have to transmogrify it.)

tia,
Kai
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top