SDL.setTransparency3kaya
Set surface transparency
Usage
Void setTransparency( SDLSurface surface, SDLColour rgba )
Arguments
surface The surface to set
rgb The RGBA value of the transparent pixel. Generally A will be 255
Overview
Select a particular colour on the surface to be considered transparent when copying the surface.
-
setTransparency(pic,RGBA(0,255,0,255)); // green is transparent
Releases
4 releases since Debian 5.0 (Lenny); the text changed 3 times.