WinXDraw_SetImageChannel (hImage, channel, UBYTE @data[])
Sets the image channel data for an image channel
Parameter | Description |
---|---|
hImage | The handle to the image to set the channel for |
channel | The channel id, see remarks for more info |
UBYTE @data[] | The channel data. The function fails if this array is too small |
$$TRUE on success or $$FALSE on fail
The channel parameter can be any one of :
Note that the data[] array is single dimensional, in row order, and with the last scanline at the top of the array. This orgainisation is a little wierd. It is to do with the way Windows stores and renders bitmaps.
'Declare the data array ... 'Set the red channel to 0 for a 400x300 bitmap |
Images
WinXDrawImage
WinXDraw_CreateImage
WinXDraw_LoadImage
WinXDraw_SaveImage
WinXDraw_SetImagePixel
WinXDraw_SetConstantAlpha
WinXDraw_GetImageInfo
WinXDraw_PremultiplyImage