Skip to content

class ImageRegistry public

A global registry for storing Hokusai::Image

#create(name, width, height, transparent) public

create a new image and add it to the registry

Arguments

  • name - key for image (String)
  • width - width (Float)
  • height - height (Float)
  • transparent - make the image transparent (default: false)

Returns

Returns Hokusai::Image

#register(name, image) public

Registers an image

Arguments

  • name - key for image (String)
  • image - a Hokusai::Image

Returns

Returns nothing

#get(name) public

Fetches an image from the registry

Arguments

  • name - key for image (String)

Returns

Returns Hokusai::Image

#delete(name) public

Delete a image from the registry

Arguments

  • name - key for image (String)

Returns

Returns nothing