Table of Contents

Method Render

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

Render(SKCanvas, SKRect)

Renders the current animation frame to the given canvas within the specified rectangle.

public void Render(SKCanvas canvas, SKRect rect)

Parameters

canvas SKCanvas

The SKCanvas to draw onto.

rect SKRect

The destination rectangle within the canvas.

Remarks

Has no effect when no animation is loaded (HasAnimation is false). Call this inside your paint/draw callback after Update(TimeSpan) has been called for the current frame.