Méthode | 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. |
Méthode | Description | |
---|---|---|
GetClosestColor ( int red, int green, int blue ) : int |
public CalculatePalette ( |
||
image | Image to calculate palette for. | |
paletteSize | int | Palette size to calculate. |
Résultat | Color[] |
public CalculatePalette ( |
||
image | Image to calculate palette for. | |
paletteSize | int | Palette size to calculate. |
Résultat | Color[] |
public ColorImageQuantizer ( IColorQuantizer quantizer ) : System | ||
quantizer | IColorQuantizer | Color quantization algorithm to use for processing images. |
Résultat | System |
public ReduceColors ( |
||
image | Source image to process. | |
palette | Color | Target color palette. Must contatin 2-256 colors. |
Résultat |
public ReduceColors ( |
||
image | Source image to process. | |
paletteSize | int | Number of colors to get in the output image, [2, 256]. |
Résultat |
public ReduceColors ( |
||
image | Source image to process. | |
palette | Color | Target color palette. Must contatin 2-256 colors. |
Résultat |
public ReduceColors ( |
||
image | Source image to process. | |
paletteSize | int | Number of colors to get in the output image, [2, 256]. |
Résultat |