Edit

Share via


ImageAttributes.ClearNoOp Method

Definition

Clears the NoOp setting.

Overloads

ClearNoOp()

Clears the NoOp setting for the default category.

ClearNoOp(ColorAdjustType)

Clears the NoOp setting for a specified category.

ClearNoOp()

Source:
ImageAttributes.cs
Source:
ImageAttributes.cs
Source:
ImageAttributes.cs
Source:
ImageAttributes.cs
Source:
ImageAttributes.cs

Clears the NoOp setting for the default category.

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

Remarks

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.

You can disable color adjustment for the default category by calling the SetNoOp method. Later, you can reinstate color adjustment for the default category by calling the ClearNoOp method. The color adjustment then returns to what was in place before the call to SetNoOp.

Applies to

ClearNoOp(ColorAdjustType)

Source:
ImageAttributes.cs
Source:
ImageAttributes.cs
Source:
ImageAttributes.cs
Source:
ImageAttributes.cs
Source:
ImageAttributes.cs

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)

Parameters

type
ColorAdjustType

An element of ColorAdjustType that specifies the category for which the NoOp setting is cleared.

Remarks

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.

You can disable color adjustment for a certain category by calling the SetNoOp method. Later, you can reinstate color adjustment for that category by calling the ClearNoOp method. The color adjustment then returns to what was in place before the call to SetNoOp.

Applies to