Struct D2D1LayerParameters
Contains the content bounds, mask information, opacity settings, and other options for a layer resource.
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1LayerParameters : IEquatable<D2D1LayerParameters>
Constructors
|
Edit this page
View Source
D2D1LayerParameters(in D2D1RectF, D2D1Geometry?, D2D1AntialiasMode, in D2D1Matrix3X2F, float, D2D1Brush?, D2D1LayerOptions)
Declaration
public D2D1LayerParameters(in D2D1RectF contentBounds, D2D1Geometry? geometricMask, D2D1AntialiasMode maskAntialiasMode, in D2D1Matrix3X2F maskTransform, float opacity, D2D1Brush? opacityBrush, D2D1LayerOptions layerOptions)
Parameters
| Type |
Name |
Description |
| D2D1RectF |
contentBounds |
The content bounds of the layer. Content outside these bounds is not guaranteed to render.
|
| D2D1Geometry |
geometricMask |
The geometric mask specifies the area of the layer that is composited into the render target.
|
| D2D1AntialiasMode |
maskAntialiasMode |
A value that specifies the antialiasing mode for the geometricMask.
|
| D2D1Matrix3X2F |
maskTransform |
A value that specifies the transform that is applied to the geometric mask when composing the layer.
|
| float |
opacity |
An opacity value that is applied uniformly to all resources in the layer when compositing to the target.
|
| D2D1Brush |
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.
|
| D2D1LayerOptions |
layerOptions |
A value that specifies whether the layer intends to render text with ClearType antialiasing.
|
Properties
|
Edit this page
View Source
ContentBounds
Gets or sets the content bounds of the layer. Content outside these bounds is not guaranteed to render.
Declaration
public D2D1RectF ContentBounds { get; set; }
Property Value
|
Edit this page
View Source
Default
Declaration
public static D2D1LayerParameters Default { get; }
Property Value
|
Edit this page
View Source
GeometricMask
Gets or sets the geometric mask specifies the area of the layer that is composited into the render target.
Declaration
public D2D1Geometry? GeometricMask { get; set; }
Property Value
|
Edit this page
View Source
LayerOptions
Gets or sets a value that specifies whether the layer intends to render text with ClearType antialiasing.
Declaration
public D2D1LayerOptions LayerOptions { get; set; }
Property Value
|
Edit this page
View Source
MaskAntialiasMode
Gets or sets a value that specifies the antialiasing mode for the geometricMask.
Declaration
public D2D1AntialiasMode MaskAntialiasMode { get; set; }
Property Value
|
Edit this page
View Source
Gets or sets a value that specifies the transform that is applied to the geometric mask when composing the layer.
Declaration
public D2D1Matrix3X2F MaskTransform { get; set; }
Property Value
|
Edit this page
View Source
Opacity
Gets or sets an opacity value that is applied uniformly to all resources in the layer when compositing to the target.
Declaration
public float Opacity { get; set; }
Property Value
|
Edit this page
View Source
OpacityBrush
Gets or sets 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.
Declaration
public D2D1Brush? OpacityBrush { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D2D1LayerParameters)
Declaration
public readonly bool Equals(D2D1LayerParameters other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static D2D1LayerParameters NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D2D1LayerParameters>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D2D1LayerParameters> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in D2D1LayerParameters)
Declaration
public static void NativeWriteTo(nint buffer, in D2D1LayerParameters obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D2D1LayerParameters>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D2D1LayerParameters> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D2D1LayerParameters, D2D1LayerParameters)
Declaration
public static bool operator ==(D2D1LayerParameters left, D2D1LayerParameters right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D2D1LayerParameters, D2D1LayerParameters)
Declaration
public static bool operator !=(D2D1LayerParameters left, D2D1LayerParameters right)
Parameters
Returns
Implements