render

fun render(canvas: Canvas): Animation

Draws the current animation frame

It is undefined behavior to call render() on a newly created Animation before specifying an initial frame via one of the seek() variants.

Return

this

Parameters

canvas

destination canvas


fun render(canvas: Canvas, offset: Point): Animation

Draws the current animation frame

It is undefined behavior to call render() on a newly created Animation before specifying an initial frame via one of the seek() variants.

Return

this

Parameters

canvas

destination canvas

offset

destination offset


fun render(canvas: Canvas, left: Float, top: Float): Animation

Draws the current animation frame

It is undefined behavior to call render() on a newly created Animation before specifying an initial frame via one of the seek() variants.

Return

this

Parameters

canvas

destination canvas

left

destination offset left

top

destination offset top


fun render(canvas: Canvas, dst: Rect, vararg renderFlags: RenderFlag): Animation

Draws the current animation frame

It is undefined behavior to call render() on a newly created Animation before specifying an initial frame via one of the seek() variants.

Return

this

Parameters

canvas

destination canvas

dst

destination rect

renderFlags

render flags


fun render(canvas: Canvas, left: Float, top: Float, right: Float, bottom: Float, vararg renderFlags: RenderFlag): Animation

Draws the current animation frame

It is undefined behavior to call render() on a newly created Animation before specifying an initial frame via one of the seek() variants.

Return

this

Parameters

canvas

destination canvas

left

destination left

top

destination top

right

destination right

bottom

destination bottom

renderFlags

render flags