Image.UsePalette

Image.UsePalette property

Gets a value indicating whether the image palette is used.

public virtual bool UsePalette { get; }

Property Value

true if the palette is used in the image; otherwise, false.

Examples

Determine if the palette is used by the image.

[C#]

using (var image = Image.Load(folder + "Sample.bmp"))
{
    if (image.UsePalette)
    {
        Console.WriteLine("The palette is used by the image");
    }
}

See Also