Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
Palette Property
See Also 
Leadtools Namespace > RasterImage Class : Palette Property



Gets the palette for this RasterImage.

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property Palette As Color()
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value() As Color
 
value = instance.Palette
C# 
public virtual Color[] Palette {get;}
C++/CLI 
public:
virtual property array<Color>^ Palette {
   array<Color>^ get();
}

Return Value

An array of Color structures that represents the color palette used in this RasterImage.

Remarks

If this RasterImage does not use a palette; the value of this property will be null (Nothing in Visual Basic).

An RasterImage must have a BitsPerPixel value of 8 or less in order to have a valid palette.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also