public sealed class PredefinedColorsQuantizer : IQuantizer
Public NotInheritable Class PredefinedColorsQuantizer
Implements IQuantizer
public ref class PredefinedColorsQuantizer sealed : IQuantizer
[<SealedAttribute>]
type PredefinedColorsQuantizer =
class
interface IQuantizer
end
AlphaThreshold |
Gets the alpha threshold value used by this PredefinedColorsQuantizer. This value will be returned also by
the AlphaThreshold property once an IQuantizingSession is created from this instance.
See the Remarks section of the IQuantizingSession.AlphaThreshold property for details. |
BackColor |
Gets the back color used by this PredefinedColorsQuantizer. This value will be returned also by
the BackColor property once an IQuantizingSession is created from this instance.
The A field of the returned color is always 255.
See the Remarks section of the IQuantizingSession.AlphaThreshold property for details. |
Palette | If this PredefinedColorsQuantizer is associated with a specific palette, then returns the same Palette that will be returned also by the Palette property once an IQuantizingSession is created from this instance; otherwise, returns . |
PixelFormatHint | Gets a KnownPixelFormat that is compatible with this PredefinedColorsQuantizer instance. If this PredefinedColorsQuantizer was not initialized with custom color mapping logic, then this is the possible lowest bits-per-pixel value format. |
WorkingColorSpace | Gets the preferred color space of this PredefinedColorsQuantizer instance for quantizing. This value will be returned also by the WorkingColorSpace property once an IQuantizingSession is created from this instance. You can use the ConfigureColorSpace method to create a clone of this PredefinedColorsQuantizer using a different working color space. |
Argb1555 | Gets a PredefinedColorsQuantizer instance that can quantize colors to 16-bit ones where alpha, red, green and blue components are encoded in 1, 5, 5 and 5 bits, respectively. |
Argb8888 | Gets a PredefinedColorsQuantizer instance that can quantize colors to the 32-bit ARGB color space. |
BlackAndWhite | Gets a PredefinedColorsQuantizer instance that quantizes every color to black or white. |
ConfigureColorSpace |
Configures the preferred working color space for this PredefinedColorsQuantizer.
The configuration might be ignored if this instance was created from a custom function.
The configuration may affect alpha blending, nearest color lookup if this quantizer has a Palette, and also the behavior of ditherers that use this quantizer.
See the Remarks section of the WorkingColorSpace enumeration for details and image examples about using the different color spaces in various operations. |
FromBitmapData | Gets a PredefinedColorsQuantizer instance that is compatible with the PixelFormat of the specified bitmapData and uses its Palette if bitmapData represents an indexed bitmap. |
FromCustomFunction(FuncColor32, Color32, KnownPixelFormat) | Gets a PredefinedColorsQuantizer instance that can quantize colors using the custom quantizer function specified in the quantizingFunction parameter. |
FromCustomFunction(FuncColor32, Color32, Color32, KnownPixelFormat, Byte) | Gets a PredefinedColorsQuantizer instance that can quantize colors using the custom quantizer function specified in the quantizingFunction parameter. |
FromCustomFunction(FuncColor32, Color32, Color32, Byte, Boolean, KnownPixelFormat) | Gets a PredefinedColorsQuantizer instance that can quantize colors using the custom quantizer function specified in the quantizingFunction parameter. |
FromCustomPalette(Palette) | Gets a PredefinedColorsQuantizer instance that can quantize colors using the specified palette. |
FromCustomPalette(Color, Color, Byte) | Gets a PredefinedColorsQuantizer instance that can quantize colors using the colors in the specified palette. |
FromCustomPalette(IEnumerableColor32, Color32, Byte) | Gets a PredefinedColorsQuantizer instance that can quantize colors using the colors in the specified palette. |
FromPixelFormat |
Gets a PredefinedColorsQuantizer instance that is compatible with the specified pixelFormat.
See the Remarks section for details. |
Grayscale | Gets a PredefinedColorsQuantizer instance that can quantize colors to 8-bit grayscale ones of 256 shades. |
Grayscale16 | Gets a PredefinedColorsQuantizer instance that can quantize colors to 4-bit grayscale ones of 16 shades. |
Grayscale4 | Gets a PredefinedColorsQuantizer instance that can quantize colors to 2-bit grayscale ones of 4 shades. |
Rgb332 | Gets a PredefinedColorsQuantizer instance that can quantize colors to 8-bit ones where red, green and blue components are encoded in 3, 3 and 2 bits, respectively. |
Rgb555 | Gets a PredefinedColorsQuantizer instance that can quantize colors to 16-bit ones where each color component is encoded in 5 bits. |
Rgb565 | Gets a PredefinedColorsQuantizer instance that can quantize colors to 16-bit ones where red, green and blue components are encoded in 5, 6 and 5 bits, respectively. |
Rgb888 | Gets a PredefinedColorsQuantizer instance that can quantize colors to 24-bit ones where each color component is encoded in 8 bits. |
SystemDefault1BppPalette | Gets a PredefinedColorsQuantizer instance that can quantize colors using the system default 1-bit palette. This palette consists of the black and white colors. |
SystemDefault4BppPalette | Gets a PredefinedColorsQuantizer instance that can quantize colors using the system default 4-bit palette. This palette consists of the 16 standard basic sRGB colors. |
SystemDefault8BppPalette | Gets a PredefinedColorsQuantizer instance that can quantize colors using the system default 8-bit palette. This palette contains the 16 standard basic sRGB colors, the "web-safe" palette of 216 colors as well as 24 transparent entries. |
InitializeAsync |
Gets an IQuantizingSession instance potentially asynchronously that can be used to quantize the colors of the specified IReadableBitmapData instance.
If quantizer is a known quantizer that can be evaluated quickly, then this method might be executed synchronously.
This method is available in.NET Framework 4.0 and above. (Defined by QuantizerExtensions) |