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.
public GdPictureStatus ConvertTo8BppQ( int ImageID, int MaxColors );
Public Function ConvertTo8BppQ( ByVal ImageID As Integer, ByVal MaxColors As Integer ) As GdPictureStatus
|
Parameters |
Description |
|
ImageID |
GdPicture Image Identifier. |
|
MaxColors |
The number of max. distinct colors to use into the new image. [2 - 256] |
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.
|