Lua:createIcon
Jump to navigation
Jump to search
<> Reference
function createIcon(width, height) : Icon
Creates an Icon image with the requested dimensions.
Use the returned graphic with Image, Picture, Canvas, or other graphical CE objects.
Function Parameters
| Parameter | Type | Description |
|---|---|---|
| width | Integer | Width in pixels. |
| height | Integer | Height in pixels. |
Returns
Icon — The new Icon object.
Examples
local graphic = createIcon(128, 128) -- Draw on or assign the returned graphic.
See Also
Main Pages