You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Color Depth Conversion & Colors Reduction > ConvertTo8BppQ > ConvertTo8BppQ Method (Integer, Integer)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.ConvertTo8BppQ Method (Integer, Integer)

Quantizes & converts a GdPicture image to an 8-bits indexed color image with a desired number of colors. This function uses a color quantization algorithm. 

The color table has a maximum of 256 entries.

C#
public GdPictureStatus ConvertTo8BppQ(
    int ImageID, 
    int MaxColors
);
Visual Basic
Public Function ConvertTo8BppQ(
    ByVal ImageID As Integer, 
    ByVal MaxColors As Integer
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
MaxColors 
The number of max. distinct colors to use into the new image. [2 - 256]  
Returns

A member of the GdPictureStatus enumeration.

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.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.