This documentation is archived and is not being maintained.

ImageAttributes.GetAdjustedPalette Method

Adjusts the colors in a palette according to the adjustment settings of a specified category.

[Visual Basic]
Public Sub GetAdjustedPalette( _
   ByVal palette As ColorPalette, _
   ByVal type As ColorAdjustType _
public void GetAdjustedPalette(
 ColorPalette palette,
 ColorAdjustType type
public: void GetAdjustedPalette(
 ColorPalette* palette,
 ColorAdjustType type
public function GetAdjustedPalette(
   palette : ColorPalette,
 type : ColorAdjustType


A ColorPalette object that on input, contains the palette to be adjusted, and on output, contains the adjusted palette.
Element of the ColorAdjustType enumeration that specifies the category whose adjustment settings will be applied to the palette.

Return Value

This method does not return a value.


An ImageAttributes object maintains color and grayscale settings for five adjustment categories: default, bitmap, brush, pen, and text. For example, you can specify a color-remap table for the default category, a different color-remap table for the bitmap category, and still a different color-remap table for the pen category.

When you call GetAdjustedPalette, you can specify the adjustment category that is used to adjust the palette colors. For example, if you pass ColorAdjustType.Bitmap to the GetAdjustedPalette method, then the adjustment settings of the bitmap category are used to adjust the palette colors.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ImageAttributes Class | ImageAttributes Members | System.Drawing.Imaging Namespace