PathGradientBrush::SetGammaCorrection 方法 (gdipluspath.h)

PathGradientBrush::SetGammaCorrection 方法會指定是否為此路徑漸層筆刷啟用 gamma 校正。

語法

Status SetGammaCorrection(
  [in] BOOL useGammaCorrection
);

參數

[in] useGammaCorrection

類型: BOOL

布爾值,指定是否啟用 gamma 校正。 TRUE 會指定已啟用 gamma 修正, FALSE 會指定未啟用 gamma 校正。

傳回值

類型: 狀態

如果方法成功,它會傳回 Ok,這是 Status 列舉的元素。

如果方法失敗,它會傳回 Status 列舉的其中一個其他元素。

規格需求

需求
最低支援的用戶端 Windows XP、Windows 2000 Professional [僅限傳統型應用程式]
最低支援的伺服器 Windows 2000 Server [僅限傳統型應用程式]
目標平台 Windows
標頭 gdipluspath.h (包含 Gdiplus.h)
程式庫 Gdiplus.lib
Dll Gdiplus.dll

另請參閱

筆刷和填滿的圖形

建立路徑漸層

以色彩漸層填滿圖形

PathGradientBrush

PathGradientBrush::GetGammaCorrection