CreateDrawingContext(Boolean) Method
Creates a DrawingContext for drawing to the RenderTargetBitmap.
Definition
Namespace: Avalonia.Media.Imaging
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public DrawingContext CreateDrawingContext(
bool clear
)
Public Function CreateDrawingContext (
clear As Boolean
) As DrawingContext
member CreateDrawingContext :
clear : bool -> DrawingContext
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