Bitmap.fromFile
Function loads image from file. Supported types are: JPG and PNG.
Syntax
fromFile(file)
Example
this._img = Bitmap.fromFile("app://img.png"); ... canvas.drawBitmap(this._img, 0, 0);
Parameters
file : String | - File name of a picture to be opened.
Returns
Returns type:
Bitmap
Returns Bitmap object, with loaded picture.
Exceptions
Cannot decode image
Defined in
Bitmap