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




palette
An array of RasterColor object that represents the palette for uncompressed data that is 8 bits per pixel or less.
Sets the palette 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 CodecsLoadInformationEventArgs
Dim palette() As RasterColor
 
instance.SetPalette(palette)
C# 
public void SetPalette( 
   RasterColor[] palette
)
Managed Extensions for C++ 
public: void SetPalette( 
   RasterColor[] palette
) 
C++/CLI 
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.

Example

For an example, refer to RasterCodecs.LoadInformation.

Remarks

Fill in the first 1 >> BitsPerPixel entries in this palette.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also