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



The custom palette to use.

Syntax

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

Return Value

An array of Color structures that define the custom palette to use.

Example

For an example, refer to ColorResolutionCommand.

Remarks

The custom palette to use. Specify this parameter as follows:

  • If you want to use the fixed palette or a fully optimized palette, pass null (Nothing in Visual Basic) in this property.
  • If you want to supply the entire palette, specify UserPalette in the PaletteFlags property and set this property.
  • If you want the command to fill part of your palette with optimized colors, specify OptimizedPallete in the PaletteFlags property and set this property. Click here to see how to fill in the palette.

Requirements

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

See Also