mixin graphics::Image

graphics::Image

@Js

Source

Graphical image. Images are loaded from a file using GraphicsEnv.image.

h

virtual Float h()

Source

Get the size height

isLoaded

abstract Bool isLoaded()

Source

Is this image completely loaded into memory for use. When a given uri is first accessed by GraphicsEnv.image it may be asynchronously loaded in the background and false is returned until load is complete.

mime

abstract MimeType mime()

Source

Image format based on file type:

  • image/png
  • image/gif
  • image/jpeg
  • image/svg+xml
size

abstract Size size()

Source

Get the natural size of this image. If the image has not been loaded yet, then return 0,0.

uri

abstract Uri uri()

Source

Unique uri key for this image in the GraphicsEnv cache.

w

virtual Float w()

Source

Get the size width