Image.Palette

Image.Palette property

Gets or sets the color palette.

public IColorPalette Palette { get; set; }

Property Value

The color palette.

Examples

Asserts DGN drawing contains palette

var fileName = @"C:\path\drawing.dgn";
using (DgnImage drawing = (DgnImage)Image.Load(fileName))
{
    Assert.IsNotNull(drawing.Palette);
}

See Also