←Select platform

SetPalette Method

Summary
Sets the palette for uncompressed data that is 8 bits per pixel or less.
Syntax
C#
VB
C++
Java
public void SetPalette( 
   RasterColor[] palette 
) 
Public Sub SetPalette( _ 
   ByVal palette() As RasterColor _ 
)  
public void setPalette(RasterColor[] palette) 
public: 
void SetPalette(  
   array<RasterColor>^ palette 
)  

Parameters

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

Remarks

Fill in the first 1 << BitsPerPixel (2 ^ BitsPerPixel) entries in this palette.

Example

For an example, refer to RasterCodecs.LoadInformation.

Requirements

Target Platforms

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

Leadtools.Codecs Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.