bOk = MImgSetBpp( hImage, nBpp )

Sets an image's color depth ( Bpp = Bits per pixel )

Parameters
hImage
Number: Handle of the image

nBpp
Number: The desired color depth:

1

Monochrome

4

16 colors

8

256 colors

24

True color

Return
Boolean: TRUE if successful or FALSE if an error occurs

Example
In this example an image is converted to true color:

Call MImgSetBpp( hImage, 24 )

See also
MImgGetBpp

Created with the Personal Edition of HelpNDoc: Free Kindle producer