Creates a SpriteInfo object with the specified properties. If the image is
sprited via CSS, then only the first parameter needs a value. If the image
is sprited via metadata, then the first parameter should be left null.
new SpriteInfo( cssClass, opt_url, opt_width, opt_height, opt_xOffset, opt_yOffset, opt_animated )
Parameters | cssClass | (string|null) | | CSS class to properly display the sprited image.
| opt_url | string= | | Url of the sprite image.
| opt_width | number= | | Width of the image being sprited.
| opt_height | number= | | Height of the image being sprited.
| opt_xOffset | number= | | Positive x offset of the image being sprited
within the sprite.
| opt_yOffset | number= | | Positive y offset of the image being sprited
within the sprite.
| opt_animated | boolean= | | Whether the sprite is animated.
|
|
---|