From: Daryl V. H. <dva...@sf...> - 2005-05-14 16:54:14
|
I just realized that TheMatrix isn't saving Alpha values that it's given. When the BufferedImage is created in utils.Utilities.java, it's created with type TYPE_INT_RGB, which doesn't save Alpha values, instead of TYPE_INT_ARGB, which does. Also, to create a Color object from an RGBA packed integer, using new Color(int) ignores the Alpha value, when you use new Color(int, boolean true) it actually copies it. Another thing is when you're drawing an image with transparent pixels onto another image (see utils.Utilites.java, method BufferedImage makeBufferedImage(Image image, int image_type)) it doesn't copy the Alpha values, it just blends the pixels with alpha values with the color that's already there (usually black), which probably isn't what we want, is it? I found this out by reading the JavaDocs, looking for information for another project I'm working on (if you want to know, NQL, Not Quite Liero). If you want these problems fixed, I think I'd like to volunteer (unless you think I'm working on too much already). Daryl. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.10 - Release Date: 13/05/05 |