ImageAttributes.ClearOutputChannel 方法

定義

清除 CMYK (青色-洋紅-黃色-黑色) 輸出色頻設定。Clears the CMYK (cyan-magenta-yellow-black) output channel setting.

多載

ClearOutputChannel(ColorAdjustType)

清除指定分類的 (青色-洋紅-黃色-黑色) 輸出色頻設定。Clears the (cyan-magenta-yellow-black) output channel setting for a specified category.

ClearOutputChannel()

清除預設分類的 CMYK (青色-洋紅-黃色-黑色) 輸出色頻設定。Clears the CMYK (cyan-magenta-yellow-black) output channel setting for the default category.

ClearOutputChannel(ColorAdjustType)

清除指定分類的 (青色-洋紅-黃色-黑色) 輸出色頻設定。Clears the (cyan-magenta-yellow-black) output channel setting for a specified category.

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

參數

type
ColorAdjustType

ColorAdjustType 的元素,指定已清除輸出色頻設定的分類。An element of ColorAdjustType that specifies the category for which the output channel setting is cleared.

備註

ImageAttributes物件會維護五個調整類別的色彩和灰階設定: 預設、點陣圖、筆刷、畫筆和文字。An ImageAttributes object maintains color and grayscale settings for five adjustment categories: default, bitmap, brush, pen, and text. 例如, 您可以指定預設分類的輸出通道, 以及點陣圖類別目錄的不同輸出通道。For example, you can specify an output channel for the default category and a different output channel for the bitmap 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 bitmap category, the default settings apply to the bitmap 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. 例如, 假設您指定了預設分類的輸出通道和調整矩陣。For example, suppose you specify an output channel and an adjustment matrix for the default category. 如果您藉由呼叫SetOutputChannel方法來設定 bitmap 類別目錄的輸出通道, 預設輸出通道將不會套用到點陣圖。If you set the output channel for the bitmap category by calling the SetOutputChannel method, the default output channel will not apply to bitmaps. 如果您稍後藉由呼叫ClearOutputChannel方法來清除點陣圖輸出通道, 點陣圖類別目錄將不會還原成預設輸出通道; 而點陣圖分類則不會有輸出通道設定。If you later clear the bitmap output channel by calling the ClearOutputChannel method, the bitmap category will not revert to the default output channel; rather, the bitmap category will have no output channel setting. 同樣地, 點陣圖類別目錄也不會還原成預設的彩色調整矩陣。而點陣圖分類則不會有彩色調整矩陣。Similarly, the bitmap category will not revert to the default color-adjustment matrix; rather, the bitmap category will have no color-adjustment matrix.

ClearOutputChannel()

清除預設分類的 CMYK (青色-洋紅-黃色-黑色) 輸出色頻設定。Clears the CMYK (cyan-magenta-yellow-black) output channel setting for the default category.

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

備註

ImageAttributes物件會維護五個調整類別的色彩和灰階設定: 預設、點陣圖、筆刷、畫筆和文字。An ImageAttributes object maintains color and grayscale settings for five adjustment categories: default, bitmap, brush, pen, and text. 例如, 您可以指定預設分類的輸出通道, 以及點陣圖類別目錄的不同輸出通道。For example, you can specify an output channel for the default category and a different output channel for the bitmap 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 bitmap category, the default settings apply to the bitmap category.

適用於