Animation.Render Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Render(SKCanvas, SKRect, AnimationRenderFlags) |
Renders the current animation frame to a canvas with the specified render flags. |
| Render(SKCanvas, SKRect) |
Renders the current animation frame to a canvas. |
Render(SKCanvas, SKRect, AnimationRenderFlags)
Renders the current animation frame to a canvas with the specified render flags.
public void Render(SkiaSharp.SKCanvas canvas, SkiaSharp.SKRect dst, SkiaSharp.Skottie.AnimationRenderFlags flags);
Parameters
- canvas
- SKCanvas
The canvas to render onto.
- dst
- SKRect
The destination rectangle.
- flags
- AnimationRenderFlags
Render flags that control the rendering behavior.
Remarks
The current frame is determined by the most recent Seek(Double, InvalidationController) or SeekFrame(Double, InvalidationController) call. The animation is scaled to fit the destination rectangle while preserving the aspect ratio.
Applies to
Render(SKCanvas, SKRect)
Renders the current animation frame to a canvas.
public void Render(SkiaSharp.SKCanvas canvas, SkiaSharp.SKRect dst);
Parameters
- canvas
- SKCanvas
The canvas to render onto.
- dst
- SKRect
The destination rectangle.
Remarks
The current frame is determined by the most recent Seek(Double, InvalidationController) or SeekFrame(Double, InvalidationController) call. The animation is scaled to fit the destination rectangle while preserving the aspect ratio.