ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Direct2D Namespace / Layer Class / Create Method / Create(RenderTarget,Nullable<Size2F>) Method
an instance of RenderTarget
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.

In This Topic
    Create(RenderTarget,Nullable<Size2F>) Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Create( _
       ByVal renderTarget As RenderTarget, _
       ByVal size As System.Nullable(Of Size2F) _
    ) As Layer
    public static Layer Create( 
       RenderTarget renderTarget,
       System.Nullable<Size2F> size
    )

    Parameters

    renderTarget
    an instance of RenderTarget
    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.
    Remarks
    Regardless of whether a size is initially specified, the layer automatically resizes as needed.
    See Also