語言

ImageAttributes.ClearColorKey 方法

定義

清除色彩鍵(透明度範圍)。

多載

名稱 Description
ClearColorKey()

清除預設類別的顏色鍵(透明度範圍)。

ClearColorKey(ColorAdjustType)

清除指定類別的顏色鍵(透明度範圍)。

ClearColorKey()

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

清除預設類別的顏色鍵(透明度範圍)。

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

備註

物件 ImageAttributes 會維持五個調整類別的色彩與灰階設定:預設、點陣圖、筆刷、筆觸和文字。 例如,你可以為預設類別指定一個顏色鍵,為點陣圖類別指定不同的顏色鍵,筆類別則指定不同的顏色鍵。

默認色彩調整和灰階調整設定適用於沒有自己調整設定的所有類別。 例如,如果您從未指定畫筆類別的任何調整設定,則預設設定會套用至畫筆類別。

適用於

ClearColorKey(ColorAdjustType)

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

清除指定類別的顏色鍵(透明度範圍)。

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

參數

type
ColorAdjustType

其中的一個元素 ColorAdjustType 指定了清除顏色鍵的類別。

備註

物件 ImageAttributes 會維持五個調整類別的色彩與灰階設定:預設、點陣圖、筆刷、筆觸和文字。 例如,你可以為預設類別指定一個顏色鍵,為點陣圖類別指定不同的顏色鍵,筆類別則指定不同的顏色鍵。

默認色彩調整和灰階調整設定適用於沒有自己調整設定的所有類別。 例如,如果您從未指定畫筆類別的任何調整設定,則預設設定會套用至畫筆類別。

一旦您指定特定類別的色彩調整或灰階調整設定,預設調整設定就不再套用至該類別。 舉例來說,假設你指定一個預設色彩鍵,讓任何紅色分量介於 200 到 255 的顏色都透明,並且你設定預設的伽瑪值為 1.8。 如果你透過呼叫 SetColorKey 方法設定筆類別的顏色鍵,預設的顏色鍵和預設伽瑪值不會套用在筆上。 如果你之後透過呼叫 ClearColorKey 該方法清除筆的顏色鍵,筆的分類不會回復到預設的顏色鍵;筆的分類將沒有顏色鍵。 同樣地,筆型類別不會回復到預設的伽瑪值;相反地,筆型類別將沒有伽瑪值。

適用於