Skip to main content

CreateDrawingContext Method

Creates a DrawingContext for drawing to the RenderTargetBitmap. Clears the current image data to transparent.

Definition

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

public DrawingContext CreateDrawingContext()

Return Value

DrawingContext
The drawing context.

See Also

Reference

RenderTargetBitmap Class
CreateDrawingContext Overload
Avalonia.Media.Imaging Namespace