ImgSetBitsPixel

Top  Previous  Next

Prototype

 

ImgSetBitsPixel(intImageHandle, intBitsPerPixel)

 

Description

 

Sets the bits per pixel, converting the image from/to monochrome, grayscale or true color.

 

Parameters

 

intImageHandle: integer value corresponding to the image handle.

 

intBitsPerPixel: integer value representing the number of bits per pixel. Acceptable values are 1, 4, 8 or 24.

 

Returned value

 

None.

 

Notes

 

None.

 

Example

 

// 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);