Reference for draw_image
Draw an image at a location. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
draw_image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Draw a previously loaded image at a specific coordinate using its current size.
Snippet
Draw reference.png at x coordinate of 100 and y coordinate of 200.
image = sketch.get_image('reference.png') sketch.draw_image(100, 200, image)
Parameters
- x: Horizontal coordinate at which to draw the image.
- y: Vertical coordinate at which to draw the image.
- image: The image to draw.
Examples
Availability
Available for all platforms.