[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Layer.Create

Create Method

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.

Declaration
public static Layer Create(RenderTarget renderTarget)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

Returns
Type Description
Layer
Remarks

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

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.

Declaration
public static Layer Create(RenderTarget renderTarget, Size2F? size)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

Size2F? size

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
Type Description
Layer
Remarks

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