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
public virtual bool UsePalette { get; }

Property Value

Type: Boolean
true if the palette is used in the image; otherwise, false.
Determine if the palette is used by the image.

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