ID2D1DeviceContext::FillOpacityMask(ID2D1Bitmap*,ID2D1Brush*,constD2D1_RECT_F&,constD2D1_RECT_F*)-Methode (d2d1_1.h)

Füllen Sie den Alphakanal der angegebenen Deckkraftmasken-Bitmap aus. Die Deckkraft des Pinsels wird durch die Maske moduliert. Der Renderziel-Antialiasingmodus muss auf Aliasing festgelegt werden.

Syntax

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

Parameter

[in] opacityMask

Typ: ID2D1Bitmap*

Die Bitmap, die als Deckkraftmaske fungiert

[in] brush

Typ: ID2D1Brush*

Der Pinsel, der zum Füllen des Grundtyps verwendet werden soll.

[in, ref, optional] destinationRectangle

Typ: const D2D1_RECT_F

Das Zielrechteck, an das im Renderziel ausgegeben werden soll

[in, optional] sourceRectangle

Typ: const D2D1_RECT_F*

Das Quellrechteck aus der Bitmap "Deckkraftmaske".

Rückgabewert

Keine

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 8 und Plattformupdate für Windows 7 [Desktop-Apps | UWP-Apps]
Unterstützte Mindestversion (Server) Windows Server 2012 und Plattformupdate für Windows Server 2008 R2 [Desktop-Apps | UWP-Apps]
Zielplattform Windows
Kopfzeile d2d1_1.h
DLL D2d1.dll

Weitere Informationen

ID2D1DeviceContext