PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

changing opacity of an alpha masked png - possible?

I have a png graphic that has an alpha mask layer

when alpha blitted to the screen the mask does exactly what it should, which is all fine

what I want to be able to do is then change the opacity of this whole image

I've tried to do this, but the opacity settings only seem to affect the strength of the alpha mask, not the opacity of the whole image

am I missing something? or is this not possible?

TIA

muff
Hm.. What's the difference? Is there any?
when I say it only affect the alpha mask I was unclear, it doesn't seem to affect it the way it should - i.e. the whole mask's values are reduced

it seems to only affect non white pixels in the mask

now it could well be something I'm doing wrong, but if it is I can't spot it

should this be possible?
because I was getting frustrated I tried this using 2 seperate png images, and loading them into a normal surface, not at rgba one

and again, it only seemed to affect non white areas on the mask image

so I switched to using bmp's, and that worked fine

so maybe it's just me screwing up png's somehow - I will investigate further