Reference for resize
Scale an image. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
resize
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Resize an image by scaling its contents.
Snippet
Load an image from the file reference.png and scale it to a width of 100 pixels and height of 200 pixels.
image = sketch.get_image('reference.png') image.resize(100, 200)
Parameters
- width: New desired width of the image in pixels.
- height: New desired height of the image in pixels.
Examples
Availability
Available for all platforms.