ChangePixelDepth

This method changes the number of bits per pixel of the currently loaded image.

The current implementation only supports increasing the pixel depth. You can change a black-and-white image to a gray or a 24-bit color image, but you cannot convert a color image to a 8-bit gray or a black-and-white image.

Syntax

ChangePixelDepth (BitsPerPixel As Long)
Parameter Description
BitsPerPixel Specifies the new value for the bits per pixel value of the image.

Possible values

4, 8, and 24