[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Layer

Class Layer

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1Layer

[Guid("2cd9069b-12e2-11dc-9fed-001143a055f9")]
public class Layer : Resource, IDisposable, IUnknown
Inheritance
object
Layer
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Layer(IntPtr)

Initializes a new instance of the Layer class.

public Layer(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(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 static Layer Create(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.

Returns

Layer

Remarks

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

Create(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 static Layer Create(RenderTarget renderTarget)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

Returns

Layer

Remarks

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

GetSize()

D2D_SIZE_F ID2D1Layer::GetSize()

public Size2F GetSize()

Returns

Size2F

Operators

explicit operator Layer(IntPtr)

Performs an explicit conversion from System.IntPtr to Layer.

public static explicit operator Layer(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Layer