ImageAttributes.ClearNoOp 方法

定义

清除 NoOp 设置。Clears the NoOp setting.

重载

ClearNoOp()

清除默认类别的 NoOp 设置。Clears the NoOp setting for the default category.

ClearNoOp(ColorAdjustType)

清除指定类别的 NoOp 设置。Clears the NoOp setting for a specified category.

ClearNoOp()

清除默认类别的 NoOp 设置。Clears the NoOp setting for the default category.

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

注解

ImageAttributes 对象维护五个调整类别的颜色和灰度设置:默认值、位图、画笔、笔和文本。An ImageAttributes object maintains color and grayscale settings for five adjustment categories: default, bitmap, brush, pen, and text. 例如,可以为默认类别指定一个伽玛值,为位图类别指定一个不同的伽玛值,并为钢笔类别指定一个伽玛值。For example, you can specify a gamma value for the default category, a different gamma value for the bitmap category, and still a different gamma value for the pen category.

可以通过调用 SetNoOp 方法来禁用默认类别的颜色调整。You can disable color adjustment for the default category by calling the SetNoOp method. 稍后,可以通过调用 ClearNoOp 方法,恢复默认类别的颜色调整。Later, you can reinstate color adjustment for the default category by calling the ClearNoOp method. 然后,颜色调整返回到 SetNoOp调用之前的位置。The color adjustment then returns to what was in place before the call to SetNoOp.

ClearNoOp(ColorAdjustType)

清除指定类别的 NoOp 设置。Clears the NoOp setting for a specified category.

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

参数

type
ColorAdjustType

ColorAdjustType 的一个元素,指定将清除 NoOp 设置的类别。An element of ColorAdjustType that specifies the category for which the NoOp 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 a gamma value for the default category, a different gamma value for the bitmap category, and still a different gamma value for the pen category.

可以通过调用 SetNoOp 方法来禁用特定类别的颜色调整。You can disable color adjustment for a certain category by calling the SetNoOp method. 稍后,可以通过调用 ClearNoOp 方法恢复该类别的颜色调整。Later, you can reinstate color adjustment for that category by calling the ClearNoOp method. 然后,颜色调整返回到 SetNoOp调用之前的位置。The color adjustment then returns to what was in place before the call to SetNoOp.

适用于