Package DE_EPAGES::Presentation::Scripts::Sprites::SpriteComposer
Program to compose a single image from several particular smaller images together with CSS classes to address them. See also: http://spritegen.website-performance.org/ http://www.alistapart.com/articles/sprites http://www.alistapart.com/articles/fir/ http://www.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/
@EXPORT_OK |
Functions
GenerateSpriteImage
Entry point of the package. Call this method to generate a Sprite image file together with the css sprites with the coordinates and a test case with html and css. Moreover optimize the image file size.
Example |
$Sprite->GenerateSpriteImage(); |
new
CTOR. Blesses new SpriteComposer object. Maps parameters from the command line and the config file and stores the attributes as member variables.
Syntax |
my $Sprite = DE_EPAGES::Presentation::Scripts::Sprites::SpriteComposer->new; |
Input |
|