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. 例如, 假設您指定預設的重新對應表, 將紅色轉換成綠色, 而且您指定了預設的 gamma 值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方法, 預設的重新對應表 (紅色到綠色) 和預設 gamma 值 (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. 同樣地, 筆刷分類不會還原為預設的 gamma 值。相反地, 筆刷類別目錄將沒有 gamma 值。Similarly, the brush category will not revert to the default gamma value; rather, the brush category will have no gamma value.

適用於