Class Karma.kImage
This object is the prototype for images submitted to Karma in the
Karma() method
Defined in: karma.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Prototype object for images
|
Field Attributes | Field Name and Description |
---|---|
<static> |
Karma.kImage.file
file location of image
|
<static> |
Karma.kImage.media
media object
|
Class Detail
Karma.kImage()
Prototype object for images
kImage is the prototype object for images. This 'media' asset is loaded in a distinctly different way from the canvas or svg assets.
- Throws:
- {Error}
- if the image asset is set to be localized but the global locale is not set on the Karma object
- {Error}
- if the name and file properties are not supplied
Field Detail
<static>
{String}
Karma.kImage.file
file location of image
- Default Value:
- ""
<static>
{Image}
Karma.kImage.media
media object
- Default Value:
- undefined