WinXDraw_SetConstantAlpha (hImage, DOUBLE alpha)
Sets the alpha value (transparancy) to a constant value
Parameter | Description |
---|---|
hImage | The handle to the image to set the alpha for |
DOUBLE alpha | A number from 0.0 to 1.0 describing the level of transparancy. 0.0 is completely transparent, 1.0 is completely opaque. |
$$TRUE on success or $$FALSE on fail
You must premultiply the image before the transparency will work properly
'Set the transparency of an image to 50% WinXDraw_SetConstantAlpha (hImage, 0.5) |
Images
WinXDrawImage
WinXDraw_CreateImage
WinXDraw_LoadImage
WinXDraw_SaveImage
WinXDraw_SetImagePixel
WinXDraw_SetImageChannel
WinXDraw_PremultiplyImage