Table of Contents

Struct LayerParameters1

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll

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

public struct LayerParameters1
Inherited Members

Constructors

LayerParameters1(RawRectangleF, Geometry, AntialiasMode, RawMatrix3x2, float, Brush, LayerOptions1)

Initializes a new instance of the LayerParameters1 struct.

public LayerParameters1(RawRectangleF contentBounds, Geometry geometryMask, AntialiasMode maskAntialiasMode, RawMatrix3x2 maskTransform, float opacity, Brush opacityBrush, LayerOptions1 layerOptions)

Parameters

contentBounds RawRectangleF

The content bounds.

geometryMask Geometry

The geometry mask.

maskAntialiasMode AntialiasMode

The mask antialias mode.

maskTransform RawMatrix3x2

The mask transform.

opacity float

The opacity.

opacityBrush Brush

The opacity brush.

layerOptions LayerOptions1

The layer options.

Fields

ContentBounds

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

public RawRectangleF ContentBounds

Field Value

RawRectangleF

GeometricMask

The geometric mask specifies the area of the layer that is composited into the render target.

public Geometry GeometricMask

Field Value

Geometry

LayerOptions

Additional options for the layer creation.

public LayerOptions1 LayerOptions

Field Value

LayerOptions1

MaskAntialiasMode

A value that specifies the antialiasing mode for the geometricMask.

public AntialiasMode MaskAntialiasMode

Field Value

AntialiasMode

MaskTransform

A value that specifies the transform that is applied to the geometric mask when composing the layer.

public RawMatrix3x2 MaskTransform

Field Value

RawMatrix3x2

Opacity

An opacity value that is applied uniformly to all resources in the layer when compositing to the target.

public float Opacity

Field Value

float

OpacityBrush

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.

public Brush OpacityBrush

Field Value

Brush