ID2D1DeviceContext::FillOpacityMask (ID2D1Bitmap*,ID2D1Brush*,constD2D1_RECT_F&,constD2D1_RECT_F*) 方法 (d2d1_1.h)

使用所提供不透明度遮罩位圖的 Alpha 色板填滿。 筆刷不透明度會由遮罩調整。 轉譯目標反鋸齒模式必須設定為別名。

語法

void FillOpacityMask(
  [in]                ID2D1Bitmap         *opacityMask,
  [in]                ID2D1Brush          *brush,
  [in, ref, optional] const D2D1_RECT_F & destinationRectangle,
  [in, optional]      const D2D1_RECT_F   *sourceRectangle
);

參數

[in] opacityMask

類型: ID2D1Bitmap*

做為不透明度遮罩的點陣圖

[in] brush

類型: ID2D1Brush*

用來填滿基本類型的筆刷。

[in, ref, optional] destinationRectangle

類型: const D2D1_RECT_F

在轉譯目標中輸出的目標目的地矩形

[in, optional] sourceRectangle

類型: const D2D1_RECT_F*

不透明度遮罩位圖的來源矩形。

傳回值

規格需求

需求
最低支援的用戶端 適用於 Windows 7 的 Windows 8 和平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 適用於 Windows Server 2008 R2 的 Windows Server 2012 和平臺更新 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 d2d1_1.h
Dll D2d1.dll

另請參閱

ID2D1DeviceContext