Image.UsePalette
Image.UsePalette property
يحصل على قيمة تشير إلى ما إذا كانت لوحة ألوان الصورة مستخدمة.
public virtual bool UsePalette { get; }
Property Value
true إذا كانت اللوحة مستخدمة في الصورة؛ وإلا، false.
أمثلة
تحديد ما إذا كانت اللوحة مستخدمة من قبل الصورة.
[C#]
using (var image = Image.Load(folder + "Sample.bmp"))
{
if (image.UsePalette)
{
Console.WriteLine("The palette is used by the image");
}
}
انظر أيضًا
- class Image
- namespace Aspose.Imaging
- assembly Aspose.Imaging