←Select platform

SetPalette Method

Summary

Sets the palette used for uncompressed data that is 8 bits per pixel or less.

Syntax
C#
VB
Objective-C
C++
Java
public void SetPalette( 
   RasterColor[] palette 
) 
Public Sub SetPalette( _ 
   ByVal palette() As RasterColor _ 
)  
@property (nonatomic, strong, nullable) NSArray<LTRasterColor *> *palette 
public void setPalette(RasterColor palette[]) 
public: 
void SetPalette(  
   array<RasterColor>^ palette 
)  

Parameters

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

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.

Example

For an example, refer to RasterCodecs.StartDecompress.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly