RenderTargetBitmapCreateDrawingContext(Boolean) Method

Creates a DrawingContext for drawing to the RenderTargetBitmap.

Definition

Namespace: Avalonia.Media.Imaging
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public DrawingContext CreateDrawingContext(
	bool clear
)

Parameters

clear  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