Skip to content

Image

Examples#

See these.

Image #

Bases: Shape

Draws an image.

height #

height: Number | None = None

The height of the rectangle to draw the image into. Use image height if None.

paint #

paint: Paint | None = None

A paint to composite the image into canvas.

src #

src: str | None = None

Draws an image from a source.

This could be an external URL or a local asset file.

src_bytes #

src_bytes: bytes | None = None

Draws an image from a bytes array.

width #

width: Number | None = None

The width of the rectangle to draw the image into. Use image width if None.

x #

x: Number | None = None

The x-axis coordinate of the image's top-left corner.

y #

y: Number | None = None

The y-axis coordinate of the image's top-left corner.