ImageAttributes.ClearBrushRemapTable 方法

定义

清除该 ImageAttributes 对象的画笔颜色重新映射表。Clears the brush color-remap table of this ImageAttributes object.

public:
 void ClearBrushRemapTable();
public void ClearBrushRemapTable ();
member this.ClearBrushRemapTable : unit -> unit
Public Sub ClearBrushRemapTable ()

注解

ImageAttributes 对象维护五个调整类别的颜色和灰度设置:默认值、位图、画笔、笔和文本。An ImageAttributes object maintains color and grayscale settings for five adjustment categories: default, bitmap, brush, pen, and text. 例如,可以为默认类别指定一个颜色重新映射表,为位图类别指定一个不同的颜色重新映射表,并为画笔类别指定其他颜色重新映射表。For example, you can specify one 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 brush category.

默认颜色调整和灰度调整设置适用于没有自己的调整设置的所有类别。The default color-adjustment and grayscale-adjustment settings apply to all categories that do not have adjustment settings of their own. 例如,如果您从未为画笔类别指定任何调整设置,则默认设置将应用于画笔类别。For example, if you never specify any adjustment settings for the brush category, the default settings apply to the brush category.

为某个类别指定颜色调整或灰度调整设置后,默认调整设置将不再应用于该类别。As soon as you specify a color-adjustment or grayscale-adjustment setting for a certain category, the default adjustment settings no longer apply to that category. 例如,假设您指定了将红色转换为绿色的默认重新映射表,并且您指定了默认伽玛值1.8。For example, suppose you specify a default remap table that converts red to green, and you specify a default gamma value of 1.8. 如果调用 SetBrushRemapTable 方法,默认的重新映射表(红色到绿色)和默认伽玛值(1.8)将不会应用于画笔。If you call the SetBrushRemapTable method, the default remap table (red to green) and the default gamma value (1.8) will not apply to brushes. 如果稍后调用 ClearBrushRemapTable 方法,画笔类别将不会还原为默认的重新映射表;相反,画笔类别将没有重新映射表。If you later call the ClearBrushRemapTable method, the brush category will not revert to the default remap table; rather, the brush category will have no remap table. 同样,画笔类别不会恢复为默认伽玛值;相反,画笔类别将没有伽玛值。Similarly, the brush category will not revert to the default gamma value; rather, the brush category will have no gamma value.

适用于