Draw Method
Draws the image to a DrawingContext.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
void Draw(
DrawingContext context,
Rect sourceRect,
Rect destRect
)
Sub Draw (
context As DrawingContext,
sourceRect As Rect,
destRect As Rect
)
abstract Draw :
context : DrawingContext *
sourceRect : Rect *
destRect : Rect -> unit
Parameters
- DrawingContext
- The drawing context.
- Rect
- The rect in the image to draw.
- Rect
- The rect in the output to draw to.