animator.skia.Picture

class animator.skia.Picture

Bases: pybind11_builtins.pybind11_object

__init__(self: animator.skia.Picture, cull: animator.skia.Rect) None

Returns a placeholder Picture of the specified dimensions cull.

Methods

MakeFromData(*args, **kwargs)

Overloaded function.

MakePlaceholder(cull)

__init__(self, cull)

Returns a placeholder Picture of the specified dimensions cull.

approximateBytesUsed(self)

approximateOpCount(self[, nested])

cullRect(self)

makeShader(self, tmx, tmy, mode[, ...])

playback(self, canvas)

Replays the drawing commands on the specified canvas.

serialize(self)

Returns storage containing Data describing Picture.

uniqueID(self)

static MakeFromData(*args, **kwargs)

Overloaded function.

  1. MakeFromData(data: animator.skia.Data) -> animator.skia.Picture

Recreates Picture that was serialized into data.

  1. MakeFromData(data: buffer) -> animator.skia.Picture

static MakePlaceholder(cull: animator.skia.Rect) animator.skia.Picture
approximateBytesUsed(self: animator.skia.Picture) int
approximateOpCount(self: animator.skia.Picture, nested: bool = False) int
cullRect(self: animator.skia.Picture) animator.skia.Rect
makeShader(self: animator.skia.Picture, tmx: SkTileMode, tmy: SkTileMode, mode: SkFilterMode, localMatrix: animator.skia.Matrix = None, tileRect: animator.skia.Rect = None) SkShader
playback(self: animator.skia.Picture, canvas: SkCanvas) None

Replays the drawing commands on the specified canvas.

serialize(self: animator.skia.Picture) animator.skia.Data

Returns storage containing Data describing Picture.

uniqueID(self: animator.skia.Picture) int