|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| draw.mem.createFromFile(filename) |
Parameters
| STRING | filename | Image filename. |
Return value
Description
Creates a new bitmap image in memory, loads the specified image file and returns the new image ID.
Supported formats are BMP and JPG.
It is possible to create up to 255 bitmaps.
See also: draw.mem.create.
Note: This function is defined in the library klib.k and is linked automatically. |
MioScript Sample Code
&myImage = draw.mem.createFromFile("myImage.jpg")
draw.main.copyFrom.&myImage()
draw.main.paint() |
|
|
|