Returns a new ColorPalette with a given size containing colors generated from a given bitmap using the specified quantiztion algorithm.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public static ColorPalette Create( Bitmap bitmap, int entryCount, ColorQuantizationAlgorithm quantizationAlgorithm, int paletteAlphaThreshold )
Type: Aurigma.GraphicsMill.Bitmap
A Bitmap to create this palette from.Type: System.Int32
The number of colors in the palette.Type: Aurigma.GraphicsMill.Transforms.ColorQuantizationAlgorithm
A color quantiztion algorithm used to reduce colors.Type: System.Int32
The alpha channel threshold.