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



palette
Array of Color structures to set.
startIndex
Index of the first palette entry to replace.
count
Number of palette entries to replace.
palette
Array of Color structures to set.
startIndex
Index of the first palette entry to replace.
count
Number of palette entries to replace.
Replaces this RasterImage color palette.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub SetPalette( _
   ByVal palette() As Color, _
   ByVal startIndex As Integer, _
   ByVal count As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim palette() As Color
Dim startIndex As Integer
Dim count As Integer
 
instance.SetPalette(palette, startIndex, count)
C# 
public virtual void SetPalette( 
   Color[] palette,
   int startIndex,
   int count
)
C++/CLI 
public:
virtual void SetPalette( 
   array<Color>^ palette,
   int startIndex,
   int count
) 

Parameters

palette
Array of Color structures to set.
startIndex
Index of the first palette entry to replace.
count
Number of palette entries to replace.

Example

For an example, refer to RasterImage.Palette.

Remarks

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