Visual Basic (Declaration) | |
---|---|
Public Sub SetPalette( _ ByVal palette() As RasterColor, _ ByVal startIndex As Integer, _ ByVal count As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void SetPalette( RasterColor[] palette, int startIndex, int count ) |
Managed Extensions for C++ | |
---|---|
public: void SetPalette( RasterColor[]* palette, int startIndex, int count ) |
C++/CLI | |
---|---|
public: void SetPalette( array<RasterColor>^ palette, int startIndex, int count ) |
Parameters
- palette
- An array of RasterColor containing the new palette to use.
- startIndex
- Index of the first palette entry to replace.
- count
- Number of palette entries to replace.
The image data of a RasterImage object with BitsPerPixel values of 1, 2, 3, 4, 5, 6, 7 or 8 consists of an index into the image palette. You can get a copy of the palette used by using the GetPalette method.
You can change the palette used by the RasterImage object with the SetPalette method.
This method does not support signed images.
For more information, refer to RasterPalette and Introduction.
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