scale
- Ariadne >
- Library >
- Ariadne 2.2 >
- Manuals >
- Programmers Reference >
- Classes >
- Photo >
- PINP Methods >
(void) scale($x, $y, $fillcolor=false)
Scales an image up or down.
| Argument | Description |
|---|---|
| $x | The maximum width of the new image in pixels. |
| $y | The maximum height of the new image in pixels. |
| $fillcolor | The backgroundcolor of the image, in hexadecimal html code. Currently unused. |
scale() scales an image up or down, while keeping the width to height ratio intact, untill both width and height fit in the given maxima.

