Image represents a graphical image.
Slots
- disposeSource
-
native Void dispose()
Free any operating system resources used by this instance.
-
new internalMake()
Internal make.
- makeSource
-
static Image? make(Uri uri, Bool checked := true)
Load an image from uri to file. If checked is true then throw UnresolvedErr if uri cannot be resolved. If checked is false then return null on error - although since the image is loaded asynchronously upon demand we don't know the image can actually be loaded upon return.
- makeFileSource
-
static Image? makeFile(File f, Bool checked := true)
Load an image from file. If checked is true and the file doesn't exist then throw an exception. If checked is false then return null - although since the image is loaded asynchronously upon demand we don't know the image can actually be loaded upon return.
- resizeSource
-
native Image resize(Size size)
Resize this image into a new image. Also see
Graphics.copyImage
. Note: this method doesn't support transparency correctly yet. - sizeSource
-
native Size size()
Get the size of the image or 0,0 if not loaded yet.
- uriSource
-
virtual Uri? uri()
Return the uri used to load this file, or null if this image wasn't created from a uri.