Image
Inherits: Shape
Draws an image.
Properties
-
height(Number | None) –The height of the rectangle to draw the image into. Use image height if None.
-
paint(Paint | None) –A paint to composite the image into canvas.
-
src(str | None) –Draws an image from a source.
-
src_bytes(bytes | None) –Draws an image from a bytes array.
-
width(Number | None) –The width of the rectangle to draw the image into. Use image width if None.
-
x(Number | None) –The x-axis coordinate of the image's top-left corner.
-
y(Number | None) –The y-axis coordinate of the image's top-left corner.
Properties#
height
#
height: Number | None = None
The height of the rectangle to draw the image into. Use image height if None.
src
#
src: str | None = None
Draws an image from a source.
This could be an external URL or a local asset file.