WinXDraw_PremultiplyImage


WinXDraw_PremultiplyImage (hImage)

Prepares an image for alpha blending by premultiplying the pixels with the alpha channel

Parameter Description
hImage The handle to the image to premultiply

Returns

$$TRUE on success or $$FALSE on fail

Remarks

Once an image has been premultiplied it cannot be restored. For this reason I sugest that you copy the image first with WinXDraw_CopyImage.

Examples

'premultiply an image
WinXDraw_PremultiplyImage (hImage)

Related Links

Images
WinXDrawImage
WinXDraw_CreateImage
WinXDraw_LoadImage
WinXDraw_SaveImage
WinXDraw_SetConstantAlpha
WinXDraw_CopyImage