# Scale proc (icon)

Source: https://ref.dm-lang.org/icon/proc/Scale

### Format
> `Scale(width, height)`

### Args
> width,height: size of the new icon

The current icon is scaled to a new size.

If world.map_format is set to TILED_ICON_MAP and the new size is not in multiples of world.icon_size, the icon will be padded with transparent pixels to the top and right as needed. See map_format for more information.

Scale() automatically performs antialiasing to avoid unwanted artifacts.

### See also
- [icon](https://ref.dm-lang.org/icon/index.md)
- [procs (icon)](https://ref.dm-lang.org/icon/proc/index.md)
- [icon_size var (world)](https://ref.dm-lang.org/world/var/icon_size.md)
- [map_format var (world)](https://ref.dm-lang.org/world/var/map_format.md)
- [Big icons](https://ref.dm-lang.org/notes/big-icons.md)
- [Tiled icons](https://ref.dm-lang.org/notes/tiled-icons.md)
