ImageAttributes.GetAdjustedPalette(ColorPalette, ColorAdjustType) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据指定类别的调整设置调整调色板中的颜色。
public:
void GetAdjustedPalette(System::Drawing::Imaging::ColorPalette ^ palette, System::Drawing::Imaging::ColorAdjustType type);
public void GetAdjustedPalette(System.Drawing.Imaging.ColorPalette palette, System.Drawing.Imaging.ColorAdjustType type);
member this.GetAdjustedPalette : System.Drawing.Imaging.ColorPalette * System.Drawing.Imaging.ColorAdjustType -> unit
Public Sub GetAdjustedPalette (palette As ColorPalette, type As ColorAdjustType)
参数
- palette
- ColorPalette
输入上的控件 ColorPalette 包含要调整的调色板,输出中包含调整后的调色板。
- type
- ColorAdjustType
该元素 ColorAdjustType 指定其调整设置将应用于调色板的类别。
注解
对象维护五个 ImageAttributes 调整类别的颜色和灰度设置:默认、位图、画笔、笔和文本。 例如,可以为默认类别指定颜色重新映射表、位图类别的不同颜色重新映射表,以及笔类别的其他颜色重新映射表。
调用 GetAdjustedPalette 该方法时,可以指定用于调整调色板颜色的调整类别。 例如,如果传递给BitmapGetAdjustedPalette该方法,则位图类别的调整设置用于调整调色板颜色。