RasterSprite( image, width, height )

Implements a rectangular area that shifts its background image's position to make visible specific region of the background.

An image URL might be prefixed by Raster resource-folder tag. The prefix "IMG:" is replaced with the current raster/images location, for example: "IMG:icon.gif" resolves to "$RASTER_HOME$/images/icon.gif". The prefix "CSS:" is replaced with the current css themes images location, for example: "CSS:icon.gif" resolves to "$RASTER_HOME$/themes/$THEME$/images/icon.gif".

Do not place a "/" between the prefix and the rest of the URL, as a forward slash will be inserted automatically. For configuring the RASTER_HOME and THEME use the Raster.config() method.

Parameters

Name Type   Description
image string Either a string containing URL of an image file, or an object that implements the IID_SPRITEINFO interface.
width number Specifies the width of this sprite
height number Specifies the height of this sprite
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López