Problems with Transparency?

BlitzMax Forums/BlitzMax Beginners Area/Problems with Transparency?

Fantomias(Posted 2005) [#1]
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!


LarsG(Posted 2005) [#2]
have you tried using PNG instead?

JPG is not a lossless compression format, so it will leave "artifacts" of different colours on your image.


FlameDuck(Posted 2005) [#3]
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).


Fantomias(Posted 2005) [#4]
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.


skidracer(Posted 2005) [#5]
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...