type

GraphicsEnv

@Js
const mixin GraphicsEnv

GraphicsEnv encapsulates a graphics toolkit. It is responsible image loading and caching.

methods

cur

Default environment for the VM

image

Get an image for the given uri.

Slot Details

cur

static GraphicsEnv cur()

Default environment for the VM

image

abstract Image image(Uri uri, Buf? data := null)

Get an image for the given uri. The uri is the unique key for the image in this environment. If file data is null, then asynchronously load and cache the image on the first load. Standard supported formats are: PNG, JPEG, and SVG.