public override crop(x as Int, y as Int, width as Int, height as Int) as Void:
Crops the logical SVG viewBox.
Rendering uses the provided rectangle as the active viewBox, while the source SVG file remains unchanged.
| Parameter | Description |
|---|---|
x | Crop x coordinate. |
y | Crop y coordinate. |
width | Crop width. |
height | Crop height. |
icon.crop(0, 0, 16, 16) assert icon.width == 16 assert icon.height == 16