create. Creating an object with specified dimensions

^image::create(dimension X; dimension Y)
^image::create(dimension X; dimension Y; background color)

Creates an object of class
image with dimensions X (width) and Y (height). As an optional parameter, you can specify background color. If this parameter is omitted, created image will have white color for background.

Example

$square[^image::create(100;100;0x000000)]

An object
square of class image with dimensions 100x100 and black background will be created.


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 20.09.2007