Skip to main content

CreateDrawingContext(Boolean) Method

Creates a DrawingContext for drawing to the RenderTargetBitmap.

Definition

Namespace: Avalonia.Media.Imaging
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public DrawingContext CreateDrawingContext(
bool clear
)

Parameters

  Boolean
If true, clears the current image data to transparent, if false, leaves the image data unchanged.

Return Value

DrawingContext
The drawing context.

See Also

Reference

RenderTargetBitmap Class
CreateDrawingContext Overload
Avalonia.Media.Imaging Namespace