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. 例如, 您可以指定預設分類的 gamma 值、點陣圖類別目錄的不同 gamma 值, 以及畫筆分類的 gamma 值。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. 例如, 您可以指定預設分類的 gamma 值、點陣圖類別目錄的不同 gamma 值, 以及畫筆分類的 gamma 值。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.

適用於