LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SetPalette Method
See Also 
Leadtools.Codecs Namespace > CodecsStartDecompressOptions Structure : SetPalette Method



palette
An array of Leadtools.RasterColor structures that represents the palette used for uncompressed data that is 8 bits per pixel or less
palette
An array of Leadtools.RasterColor structures that represents the palette used for uncompressed data that is 8 bits per pixel or less
Sets the palette used for uncompressed data that is 8 bits per pixel or less.

Syntax

Visual Basic (Declaration) 
Public Sub SetPalette( _
   ByVal palette() As RasterColor _
) 
Visual Basic (Usage)Copy Code
Dim instance As CodecsStartDecompressOptions
Dim palette() As RasterColor
 
instance.SetPalette(palette)
C# 
public void SetPalette( 
   RasterColor[] palette
)
C++/CLI 
public:
void SetPalette( 
   array<RasterColor>^ palette
) 

Parameters

palette
An array of Leadtools.RasterColor structures that represents the palette used for uncompressed data that is 8 bits per pixel or less

Example

For an example, refer to RasterCodecs.StartDecompress.

Remarks

The toolkit will use the first 2 >> BitsPerPixel entries from the palette.

The UsePalette property must be set to true in order for the decompress operation to use the palette.

Requirements

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

See Also