Image.IsIndexed

Image.IsIndexed property

Gets a value indicating whether the image has indexed pixel type and uses a color palette.

public virtual bool IsIndexed { get; }

Examples

Determine if the palette is used by the image.

[C#]

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

See Also