Skip to content

Mojo graphics image scale

mojo:mojo.graphics.Image.Scale

Property Scale:std.geom.Vec2f#

The image scale.

The scale property provides a simple way to 'pre-scale' an image.

For images with a constant scale, Scaling an image this way is faster than using one of the 'scale' parameters of Canvas.DrawImage.