Masked images are being hormonal
BlitzMax Forums/BlitzMax Programming/Masked images are being hormonal
| ||
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? |
| ||
I believe Setmaskcolor() does not affect images loaded with a alpha channel, i.e. png, did you change format? |
| ||
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. |
| ||
I think it may have been what TAS pointed out, though I'm unsure why it ever became an issue in the first place. |