Creates and initializes a new ColorPalette instance. Colors of this palette are generated from the specified bitmap.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Sub New ( _ bitmap As Bitmap, _ entryCount As Integer, _ hasAlpha As Boolean, _ quantizationAlgorithm As ColorQuantizationAlgorithm _ )
public ColorPalette( Bitmap bitmap, int entryCount, bool hasAlpha, ColorQuantizationAlgorithm quantizationAlgorithm )
Type: Aurigma.GraphicsMill.Bitmap
Bitmap instance for which an optimal palette is built.Type: System.Int32
Number of colors in the palette.Type: System.Boolean
Value indicating if palette entries should support alpha channel (information about pixel transparency).Type: Aurigma.GraphicsMill.Transforms.ColorQuantizationAlgorithm
Color quantiztion algorithm used to reduce colors.