Aurigma.GraphicsMill.Core.x64 by Aurigma Inc.

<PackageReference Include="Aurigma.GraphicsMill.Core.x64" Version="9.3.11" />

.NET API 63,775,232 bytes

 ColorPalette

public sealed class ColorPalette : IEnumerable<RgbColor>, IDisposable
Represents a palette, i.e. an array of color values.
public int Count { get; }

Returns a number of colors in the palette.

public bool HasAlpha { get; }

Gets a value indicating whether this palette support transparency.

public RgbColor this[int itemIndex] { get; set; }

Gets or sets a palette entry at the specified index.

public ColorPaletteType Type { get; }

Gets a value indicating whether this palette is predefined or custom.

public ColorPalette(ColorPaletteType colorPaletteType)

Initializes a new instance of the ColorPalette class using the specified type.

public ColorPalette(ColorPalette palette)

Initializes a new instance of the ColorPalette class from the specified existing palette.

Initializes a new instance of the ColorPalette class using the specified collection of colors.

public ColorPalette(ColorPalette palette)

Initializes a new instance of the ColorPalette class by copying colors from the specified ColorPaletteSystem.Drawing.Imaging.ColorPalette object.

public ColorPalette(int entryCount)

Initializes a new instance of the ColorPalette class using the specified size.

public static ColorPalette Create(Bitmap bitmap, int entryCount, ColorQuantizationAlgorithm quantizationAlgorithm, int paletteAlphaThreshold)

Returns a new ColorPalette with a given size containing colors generated from a given bitmap using the specified quantiztion algorithm.

public static ColorPalette Create(Bitmap bitmap, int entryCount, ColorQuantizationAlgorithm quantizationAlgorithm)

Returns a new ColorPalette with a given size containing colors generated from a given bitmap using the specified quantiztion algorithm.

public static ColorPalette Create(Bitmap bitmap, int entryCount)

Returns a new ColorPalette with a given size containing colors generated from a given bitmap.

public static ColorPalette Create(Bitmap bitmap)

Returns a new ColorPalette containing colors generated from a given bitmap.

public static ColorPalette op_Implicit(ColorPalette palette)

Converts the specified ColorPaletteAurigma.GraphicsMill.ColorPalette to a ColorPaletteSystem.Drawing.Imaging.ColorPalette.

public static ColorPalette op_Implicit(ColorPalette palette)

Converts the specified ColorPaletteSystem.Drawing.Imaging.ColorPalette to a ColorPaletteAurigma.GraphicsMill.ColorPalette.

public void ~ColorPalette()

public object Clone()

Returns a full copy of this ColorPalette instance.

protected void Dispose(bool A_0)

public int FindNearestIndex(RgbColor color)

Returns an index of the color in this palette closest to a given one.

Returns an enumerator for the entire ColorPalette.

Returns an enumerator for the entire ColorPalette.

public void SetKeyColor(RgbColor color)

Makes a palette entry which is closest to a given color transparent.

public void SetKeyColor(int entryIndex)

Makes a palette entry with a given index transparent.

Gets the ColorPaletteSystem.Drawing.Imaging.ColorPalette containing the same colors as this ColorPalette does.