GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / ConvertTo8BppQ Method / ConvertTo8BppQ(Int32,Int32) Method
GdPicture image identifier.
The number of max. distinct colors to use into the new image. [2 - 256]





In This Topic
ConvertTo8BppQ(Int32,Int32) Method
In This Topic
Quantizes & converts a GdPicture image to an 8-bit indexed color image with a desired number of colors. This method uses a color quantization algorithm. The color table has a maximum of 256 entries.
Syntax
'Declaration
 
Public Overloads Function ConvertTo8BppQ( _
   ByVal ImageID As Integer, _
   ByVal MaxColors As Integer _
) As GdPictureStatus
public GdPictureStatus ConvertTo8BppQ( 
   int ImageID,
   int MaxColors
)
public function ConvertTo8BppQ( 
    ImageID: Integer;
    MaxColors: Integer
): GdPictureStatus; 
public function ConvertTo8BppQ( 
   ImageID : int,
   MaxColors : int
) : GdPictureStatus;
public: GdPictureStatus ConvertTo8BppQ( 
   int ImageID,
   int MaxColors
) 
public:
GdPictureStatus ConvertTo8BppQ( 
   int ImageID,
   int MaxColors
) 

Parameters

ImageID
GdPicture image identifier.
MaxColors
The number of max. distinct colors to use into the new image. [2 - 256]

Return Value

A member of the GdPictureStatus enumeration.
Remarks
Color image quantization is a process that reduces the number of distinct colors used in an image, usually with the intention that the new image should be as visually similar as possible to the original image.
See Also