LayerParameters1 function
Returns a D2D1_LAYER_PARAMETERS1 struct that contains the content bounds, mask information, opacity settings, and other options for a layer resource.
Syntax
D2D1_LAYER_PARAMETERS1 LayerParameters1(
_In_ const D2D1_RECT_F &contentBounds = D2D1::InfiniteRect(),
_In_opt_ ID2D1Geometry *geometricMask = NULL,
D2D1_ANTIALIAS_MODE maskAntialiasMode = D2D1_ANTIALIAS_MODE_PER_PRIMITIVE,
D2D1_MATRIX_3X2_F maskTransform = D2D1::IdentityMatrix(),
FLOAT opacity = 1.0,
_In_opt_ ID2D1Brush *opacityBrush = NULL,
D2D1_LAYER_OPTIONS1 layerOptions = D2D1_LAYER_OPTIONS1_NONE
);
Parameters
- contentBounds [in, ref]
-
Type: const D2D1_RECT_F
The content bounds of the layer. Content outside these bounds is not guaranteed to render.
- geometricMask [in, optional]
-
Type: ID2D1Geometry*
The geometric mask specifies the area of the layer that is composited into the render target.
- maskAntialiasMode
-
Type: D2D1_ANTIALIAS_MODE
A value that specifies the antialiasing mode for the geometricMask.
- maskTransform
-
Type: D2D1_MATRIX_3X2_F
A value that specifies the transform that is applied to the geometric mask when composing the layer.
- opacity
-
Type: FLOAT
An opacity value that is applied uniformly to all resources in the layer when compositing to the target.
- opacityBrush [in, optional]
-
Type: ID2D1Brush*
A brush that is used to modify the opacity of the layer. The brush is mapped to the layer, and the alpha channel of each mapped brush pixel is multiplied against the corresponding layer pixel.
- layerOptions
-
Type: D2D1_LAYER_OPTIONS1
Additional options for the layer creation.
Return value
Type: D2D1_LAYER_PARAMETERS1
The filled layer parameters struct.
Requirements
|
Minimum supported client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Library |
|
|
DLL |
|