Phone API Reference - UI Classes (Widgets) - Image - resize
resize
Description
Changes the size of the image. If either width or height is set to 0, the image will be scaled to the other width/height, maintaining the aspect ratio.
Basic Example:
|
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
height | Yes | integer | Height in pixels. | |
width | Yes | integer | Width in pixels. |
Examples
resize an image widget to width of 20 pixels and preserve the previous aspect ratio
|