ImageAttributes.ClearOutputChannelColorProfile 方法

定义

清除输出通道颜色配置文件设置。Clears the output channel color profile setting.

重载

ClearOutputChannelColorProfile()

为默认类别清除输出通道颜色配置文件设置。Clears the output channel color profile setting for the default category.

ClearOutputChannelColorProfile(ColorAdjustType)

为指定类别清除输出通道颜色配置文件设置。Clears the output channel color profile setting for a specified category.

ClearOutputChannelColorProfile()

为默认类别清除输出通道颜色配置文件设置。Clears the output channel color profile setting for the default category.

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

注解

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 profile for the default category and a different output channel profile 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.

ClearOutputChannelColorProfile(ColorAdjustType)

为指定类别清除输出通道颜色配置文件设置。Clears the output channel color profile setting for a specified category.

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

参数

type
ColorAdjustType

ColorAdjustType 的一个元素,指定将清除输出通道配置文件设置的类别。An element of ColorAdjustType that specifies the category for which the output channel profile 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 profile for the default category and a different output channel profile 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 profile and an adjustment matrix for the default category. 如果通过调用 SetOutputChannelColorProfile 方法为位图类别设置输出通道配置文件,则默认输出通道配置文件将不会应用于位图。If you set the output channel profile for the bitmap category by calling the SetOutputChannelColorProfile method, the default output channel profile will not apply to bitmaps. 如果稍后通过调用 ClearOutputChannelColorProfile 方法清除了位图输出通道配置文件,则位图类别不会还原为默认的输出通道配置文件;相反,位图类别将没有输出通道配置文件设置。If you later clear the bitmap output channel profile by calling the ClearOutputChannelColorProfile method, the bitmap category will not revert to the default output channel profile; rather, the bitmap category will have no output channel profile setting. 同样,位图类别也不会还原为默认的颜色调整矩阵;相反,位图类别将没有颜色调整矩阵。Similarly, the bitmap category will not revert to the default color-adjustment matrix; rather, the bitmap category will have no color-adjustment matrix.

适用于