Struct LayerParameters1
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
RawRectangleFThe content bounds.
geometryMask
GeometryThe geometry mask.
maskAntialiasMode
AntialiasModeThe mask antialias mode.
maskTransform
RawMatrix3x2The mask transform.
opacity
floatThe opacity.
opacityBrush
BrushThe opacity brush.
layerOptions
LayerOptions1The 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
LayerOptions
Additional options for the layer creation.
public LayerOptions1 LayerOptions
Field Value
MaskAntialiasMode
A value that specifies the antialiasing mode for the geometricMask.
public AntialiasMode MaskAntialiasMode
Field Value
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
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