Masked images are being hormonal

BlitzMax Forums/BlitzMax Programming/Masked images are being hormonal

Pineapple(Posted 2012) [#1]
For some images the masking works and for some it doesn't, and the effect seems to be completely arbitrary. When I change nothing but the content of some image file it often affects whether or not it gets masked. What could possibly be causing this sort of behavior?


TAS(Posted 2012) [#2]
I believe Setmaskcolor() does not affect images loaded with a alpha channel, i.e. png, did you change format?


xlsior(Posted 2012) [#3]
What file type are you using?

JPEG compression may subtly change the colors used, so you may not get a 100% match anymore of the RGB colors as they showed up in your image editing program.

When depending on masked colors, make sure to use a format with non-lossy compression, such as PNG or BMP, never lossy compression like JPEG.


Pineapple(Posted 2012) [#4]
I think it may have been what TAS pointed out, though I'm unsure why it ever became an issue in the first place.