Image.reduceColorOctree(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reduces the color depth of an image.
public:
virtual int reduceColorOctree(int _maxColors);
public virtual int reduceColorOctree (int _maxColors);
abstract member reduceColorOctree : int -> int
override this.reduceColorOctree : int -> int
Public Overridable Function reduceColorOctree (_maxColors As Integer) As Integer
Parameters
- _maxColors
- Int32
The maximum number of colors.
Returns
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.