Method | Description | |
---|---|---|
CalculatePalette ( |
Calculate reduced color palette for the specified image. See CalculatePalette(UnmanagedImage, int) for details. |
|
CalculatePalette ( |
Calculate reduced color palette for the specified image. The method processes the specified image and feeds color value of each pixel to the specified color quantization algorithm. Finally it returns color palette built by that algorithm. |
|
ColorImageQuantizer ( IColorQuantizer quantizer ) : System |
Initializes a new instance of the ColorImageQuantizer class.
|
|
ReduceColors ( |
Create an image with reduced number of colors using the specified palette. See ReduceColors(UnmanagedImage, Color[]) for details. |
|
ReduceColors ( |
Create an image with reduced number of colors. See ReduceColors(UnmanagedImage, int) for details. |
|
ReduceColors ( |
Create an image with reduced number of colors using the specified palette. The method creates an image, which looks similar to the specified image, but contains reduced number of colors. Is substitutes every pixel of the source image with the closest matching color in the specified paletter. |
|
ReduceColors ( |
Create an image with reduced number of colors. The method creates an image, which looks similar to the specified image, but contains reduced number of colors. First, target color palette is calculated using CalculatePalette(UnmanagedImage, int) method and then a new image is created, where pixels from the given source image are substituted by best matching colors from calculated color table. |
Method | Description | |
---|---|---|
GetClosestColor ( int red, int green, int blue ) : int |
public CalculatePalette ( |
||
image | Image to calculate palette for. | |
paletteSize | int | Palette size to calculate. |
return | Color[] |
public CalculatePalette ( |
||
image | Image to calculate palette for. | |
paletteSize | int | Palette size to calculate. |
return | Color[] |
public ColorImageQuantizer ( IColorQuantizer quantizer ) : System | ||
quantizer | IColorQuantizer | Color quantization algorithm to use for processing images. |
return | System |
public ReduceColors ( |
||
image | Source image to process. | |
palette | Color | Target color palette. Must contatin 2-256 colors. |
return |
public ReduceColors ( |
||
image | Source image to process. | |
paletteSize | int | Number of colors to get in the output image, [2, 256]. |
return |
public ReduceColors ( |
||
image | Source image to process. | |
palette | Color | Target color palette. Must contatin 2-256 colors. |
return |
public ReduceColors ( |
||
image | Source image to process. | |
paletteSize | int | Number of colors to get in the output image, [2, 256]. |
return |