WinXDraw_GetImageChannel (hImage, channel, UBYTE @data[])
Retreives the channel data for an image channel
Parameter | Description |
---|---|
hImage | The handle to the image to get the channel data for |
channel | The id of the channel, see remarks for more info |
UBYTE @data[] | The array to store the channel data, this will be appropriately dimensioned by the function |
$$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 ... 'invert the red channel |
Images
WinXDraw_LoadImage
WinXDraw_SetImageChannel
WinXDraw_GetImageInfo