D2D1_LAYER_PARAMETERS1 structure (d2d1_1.h)

Contains the content bounds, mask information, opacity settings, and other options for a layer resource.

Syntax

typedef struct D2D1_LAYER_PARAMETERS1 {
  D2D1_RECT_F         contentBounds;
  ID2D1Geometry       *geometricMask;
  D2D1_ANTIALIAS_MODE maskAntialiasMode;
  D2D1_MATRIX_3X2_F   maskTransform;
  FLOAT               opacity;
  ID2D1Brush          *opacityBrush;
  D2D1_LAYER_OPTIONS1 layerOptions;
} D2D1_LAYER_PARAMETERS1;

Members

contentBounds

Type: D2D1_RECT_F

The content bounds of the layer. Content outside these bounds is not guaranteed to render.

geometricMask

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

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.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Header d2d1_1.h (include D2d1.h)

See also

Layers Overview