LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GetPalette Method
See Also 
Leadtools Namespace > RasterImage Class : GetPalette Method



Gets a copy of the palette of this RasterImage object. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Function GetPalette() As RasterColor()
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value() As RasterColor
 
value = instance.GetPalette()
C# 
public RasterColor[] GetPalette()
C++/CLI 
public:
array<RasterColor>^ GetPalette(); 

Example

For an example, refer to SetPalette and StartDithering.

Remarks

The image data of a RasterImage object with BitsPerPixel values of 1, 2, 3, 4, 5, 6, 7 or 8 consists of an index into the image palette. You can get a copy of the palette used by using the GetPalette method.

You can change the palette used by the RasterImage object with the SetPalette method.

This method does not support signed images.

For more information, refer to RasterPalette and Introduction: Palette Handling.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also