Problems with Transparency?
BlitzMax Forums/BlitzMax Beginners Area/Problems with Transparency?
| ||
I'm loading JPG Pictures and display them on the screen. In some pictures some areas are blue instead of black (I think its in black areas). Is this a problem wit transparenca or something else? How can I get rid of this effect? Thanks! |
| ||
have you tried using PNG instead? JPG is not a lossless compression format, so it will leave "artifacts" of different colours on your image. |
| ||
Is this a problem wit transparenca or something else? How can I get rid of this effect? No. Like Lars says it's a problem with using JFIF compressed images, which is a lossy compression format deswigned primarilly for photographic images (as opposed to in-game sprites). |
| ||
The JPG compression is set to 1 (no compression at all). In PSP and other programs the pictures look normal. Its just that in BlitzMax the black areas (RGB 0,0,0) are shown in blue. |
| ||
Try using LOADIMAGE("image.jpg",FILTEREDIMAGE) if you don't specify flags the default includes masking the image with the current mask color, which is black... |