mixin

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

cur static GraphicsEnv cur()

Default environment for the VM

image abstract Image image(Uri uri, Buf? data)

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.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST