IDrawingContextImplCreateLayer Method
Namespace: Avalonia.PlatformAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
IDrawingContextLayerImpl CreateLayer(
PixelSize size
)
Function CreateLayer (
size As PixelSize
) As IDrawingContextLayerImpl
abstract CreateLayer :
size : PixelSize -> IDrawingContextLayerImpl
- size PixelSize
- The size of the layer in DIPs.
IDrawingContextLayerImplAn
IRenderTargetBitmapImpl
Depending on the rendering backend used, a layer created via this method may be more
performant than a standard render target bitmap. In particular the Direct2D backend
has to do a format conversion each time a standard render target bitmap is rendered,
but a layer created via this method has no such overhead.