Table of Contents

Class Layer

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("2cd9069b-12e2-11dc-9fed-001143a055f9")]
public class Layer : Resource
Inheritance
Layer
Inherited Members

Constructors

Layer(RenderTarget)

Creates a layer resource that can be used with this render target and its compatible render targets. The new layer has the specified initial size. The layer resource is allocated to the minimum size when {{PushLayer}} is called.

public Layer(RenderTarget renderTarget)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

Remarks

Regardless of whether a size is initially specified, the layer automatically resizes as needed.

Layer(RenderTarget, Size2F?)

Creates a layer resource that can be used with this render target and its compatible render targets. The new layer has the specified initial size.

public Layer(RenderTarget renderTarget, Size2F? size)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

size Size2F?

If (0, 0) is specified, no backing store is created behind the layer resource. The layer resource is allocated to the minimum size when {{PushLayer}} is called.

Remarks

Regardless of whether a size is initially specified, the layer automatically resizes as needed.

Layer(nint)

public Layer(nint nativePtr)

Parameters

nativePtr nint

Properties

Size

Gets the size of the layer in device-independent pixels.

public Size2F Size { get; }

Property Value

Size2F

Operators

explicit operator Layer(nint)

public static explicit operator Layer(nint nativePtr)

Parameters

nativePtr nint

Returns

Layer