語言

ImageAttributes.ClearColorMatrix 方法

定義

清除色彩調整矩陣。

多載

名稱 Description
ClearColorMatrix()

清除預設類別的顏色調整矩陣。

ClearColorMatrix(ColorAdjustType)

清除指定類別的色彩調整矩陣。

ClearColorMatrix()

來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs

清除預設類別的顏色調整矩陣。

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

備註

物件 ImageAttributes 會維持五個調整類別的色彩與灰階設定:預設、點陣圖、筆刷、筆觸和文字。 例如,您可以指定預設類別的色彩調整矩陣、位圖類別的不同色彩調整矩陣,以及畫筆類別的色彩調整矩陣。

默認色彩調整和灰階調整設定適用於沒有自己調整設定的所有類別。 例如,如果你從未為筆類別指定任何調整設定,那麼預設設定會套用在筆的分類上。

適用於

ClearColorMatrix(ColorAdjustType)

來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs
來源:
ImageAttributes.cs

清除指定類別的色彩調整矩陣。

public:
 void ClearColorMatrix(System::Drawing::Imaging::ColorAdjustType type);
public void ClearColorMatrix(System.Drawing.Imaging.ColorAdjustType type);
member this.ClearColorMatrix : System.Drawing.Imaging.ColorAdjustType -> unit
Public Sub ClearColorMatrix (type As ColorAdjustType)

參數

type
ColorAdjustType

其中一個元素 ColorAdjustType 指定了清除顏色調整矩陣的類別。

備註

物件 ImageAttributes 會維持五個調整類別的色彩與灰階設定:預設、點陣圖、筆刷、筆觸和文字。 例如,您可以指定預設類別的色彩調整矩陣、位圖類別的不同色彩調整矩陣,以及畫筆類別的色彩調整矩陣。

默認色彩調整和灰階調整設定適用於沒有自己調整設定的所有類別。 例如,如果你從未為筆類別指定任何調整設定,那麼預設設定會套用在筆的分類上。

一旦您指定特定類別的色彩調整或灰階調整設定,預設調整設定就不再套用至該類別。 例如,假設你指定一個顏色調整矩陣和一個預設類別的伽瑪值。 如果你透過呼叫 SetColorMatrix 方法為筆類別設定顏色調整矩陣,預設的色彩調整矩陣不會套用在筆上。 如果你之後透過呼叫 ClearColorMatrix 該方法清除筆的顏色調整矩陣,筆的分類不會回復為預設的調整矩陣;相反地,筆的分類將不會有調整矩陣。 同樣地,筆型類別不會回復到預設的伽瑪值;相反地,筆型類別將沒有伽瑪值。

適用於