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 方法来设置位图类别的输出通道,则默认输出通道将不适用于位图。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.

适用于