Prototype
ImgSetBitsPixel(intImageHandle, intBitsPerPixel)
Description
It set the bits per pixel, converting the image from/to monochrome, grayscale or truecolor.
Parameters
intImageHandle: integer value corresponding to the image handle.
intBitsPerPixel: integer value rapresenting the number of bits per pixel. Acceptable values are 1, 4, 8 or 24.
Returned value
None.
Notes
None.
Example
//It retrieve bits per pixel
BPP:=ImgGetBitsPixel(_CurrentImage);
//If the image is 1 bit per pixel, convert it in 8 bits per pixel
If BPP = 1 then ImgSetBitsPixel(_CurrentImage, 8);