set_scale


Description:

public void set_scale (uint32 width, uint32 height)

Set maximum dimensions for the frame.

The texture will be scaled to be within the maximum dimensions while keeping its aspect ratio. This option is especially useful to SVGs which will be rendered at the respective size.

::: warning Most loaders will ignore this option. Currently, only the SVG loader is known to obey it.

Parameters:

width

Maximum width

height

Maximum height