Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reduces the color depth of an image.
Syntax
public int reduceColorOctree(int maxColors)
Run On
Client
Parameters
- maxColors
Type: int
The maximum number of colors.
Return Value
Type: int
0 indicates success; otherwise, failure.
Remarks
The method reduces a 24-bit image to 8 bits, or an 8-bit image to 4 bits, unless other instructions are specified in the maxColors parameter.
If the maxColors parameter is less than or equal to 16, a 4-bit image is produced. If maxColors is more than 16, an 8-bit image is produced.