const mixin graphics::GraphicsEnv

graphics::GraphicsEnv

@Js

Source

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

cur

static GraphicsEnv cur()

Source

Default environment for the VM

image

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

Source

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.