[]
ID2D1Layer
[Guid("2cd9069b-12e2-11dc-9fed-001143a055f9")]
public class Layer : Resource, IDisposable, IUnknown
Initializes a new instance of the Layer class.
public Layer(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
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)
renderTarget
RenderTargetan 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.
Regardless of whether a size is initially specified, the layer automatically resizes as needed.
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)
renderTarget
RenderTargetan instance of RenderTarget
Regardless of whether a size is initially specified, the layer automatically resizes as needed.
D2D_SIZE_F ID2D1Layer::GetSize()
public Size2F GetSize()
Performs an explicit conversion from System.IntPtr to Layer.
public static explicit operator Layer(IntPtr nativePointer)
nativePointer
System.IntPtr