Visual Basic (Declaration) | |
---|---|
Public Sub SetPalette( _ ByVal palette() As RasterColor _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
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 structures that represents the palette used for uncompressed data that is 8 bits per pixel or less
For an example, refer to RasterCodecs.StartDecompress.
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.
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