WinXDraw_SetConstantAlpha


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.

Returns

$$TRUE on success or $$FALSE on fail

Remarks

You must premultiply the image before the transparency will work properly

Examples

'Set the transparency of an image to 50%
WinXDraw_SetConstantAlpha (hImage, 0.5)

Related Links

Images
WinXDrawImage
WinXDraw_CreateImage
WinXDraw_LoadImage
WinXDraw_SaveImage
WinXDraw_SetImagePixel
WinXDraw_SetImageChannel
WinXDraw_PremultiplyImage