Inverse of maskimage

Blitz3D Forums/Blitz3D Programming/Inverse of maskimage

DrDerekDoctors(Posted 2006) [#1]
Is it possible to find the mask colour of a loaded PNG out as I need to do some odd stuff with my PNGS after loading and it relies on knowing the mask colour.

Ta'


sswift(Posted 2006) [#2]
If they're textures, you could probably read pixels from the texture until you found one with alpha 0, and the color of that pixel is your mask color.


Beaker(Posted 2006) [#3]
Mask color in 3D is always black (0,0,0)? Or do you mean alpha? or 2D mask color? There isn't any way to find the 2D mask color (apart from using a DLL).