This function returns a new image with the specified bit depth.
|
Parameter |
Type |
Description |
|
hImage |
HANDLE |
Identifies the image to be reduced. |
|
nBitDepth |
INT |
Specifies the bit depth of the new image. |
Return Value
The return value indicates whether the image was processed successfully. A return value of NULL indicates the color reduction failed, while a nonzero value is the ImageMan handle to the new image.
Comments
Allowable values for the nBitDepth parameter are 4, 8, and 24 bits.
Note
This function does not alter the original image; rather, it returns a new image based on the passed parameters.
© 1995-2004 Data Techniques, Inc. All rights reserved.