ImageUsePalette Property
Gets a value indicating whether the image palette is used.

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.05
Syntax
public virtual bool UsePalette { get; }

Property Value

Type: Boolean
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