Image
Inherits: Shape
Draws an image.
Properties
-
height(Optional[Number]) –The height of the rectangle to draw the image into. Use image height if None.
-
paint(Optional[Paint]) –A paint to composite the image into canvas.
-
src(Optional[Union[str, bytes]]) –Draws an image from a source.
-
width(Optional[Number]) –The width of the rectangle to draw the image into. Use image width if None.
-
x(Optional[Number]) –The x-axis coordinate of the image's top-left corner.
-
y(Optional[Number]) –The y-axis coordinate of the image's top-left corner.
Properties#
height
class-attribute
instance-attribute
#
The height of the rectangle to draw the image into. Use image height if None.
paint
class-attribute
instance-attribute
#
A paint to composite the image into canvas.
src
class-attribute
instance-attribute
#
Draws an image from a source.
Accepts URLs/paths, base64 strings, or raw bytes.
width
class-attribute
instance-attribute
#
The width of the rectangle to draw the image into. Use image width if None.
x
class-attribute
instance-attribute
#
The x-axis coordinate of the image's top-left corner.