public class SpriteImage extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
hasReducedForIe6
Indicates whether this sprite has been also generated in an alpha/color degraded
version for IE6;
|
String |
resolvedPath
The
SpriteImageDirective.imagePath with variables resolved. |
String |
resolvedPathIe6
The
SpriteImageDirective.imagePath with variables resolved and the
IE6-specific suffix, null if hasReducedForIe6 is
false. |
float |
scaleRatio
The scale to apply to the final sprite's background-size.
|
BufferedImage |
sprite
The rendered sprite image bitmap
|
int |
spriteHeight
The height of the final sprite.
|
SpriteImageOccurrence |
spriteImageOccurrence
SpriteImageOccurrence for which this SpriteImage has been built. |
Map<SpriteReferenceOccurrence,SpriteReferenceReplacement> |
spriteReferenceReplacements
All
SpriteReferenceReplacements corresponding to the individual images this
sprite image consists of. |
int |
spriteWidth
The width of the final sprite.
|
| Constructor and Description |
|---|
SpriteImage(BufferedImage sprite,
SpriteImageOccurrence spriteImageOccurrence,
Map<SpriteReferenceOccurrence,SpriteReferenceReplacement> spriteReplacements,
int width,
int height,
float scale) |
public final BufferedImage sprite
public final Map<SpriteReferenceOccurrence,SpriteReferenceReplacement> spriteReferenceReplacements
SpriteReferenceReplacements corresponding to the individual images this
sprite image consists of.public final SpriteImageOccurrence spriteImageOccurrence
SpriteImageOccurrence for which this SpriteImage has been built.public boolean hasReducedForIe6
public String resolvedPath
SpriteImageDirective.imagePath with variables resolved.public String resolvedPathIe6
SpriteImageDirective.imagePath with variables resolved and the
IE6-specific suffix, null if hasReducedForIe6 is
false.public int spriteWidth
public int spriteHeight
public float scaleRatio
public SpriteImage(BufferedImage sprite, SpriteImageOccurrence spriteImageOccurrence, Map<SpriteReferenceOccurrence,SpriteReferenceReplacement> spriteReplacements, int width, int height, float scale)
Copyright © 2013 Carrot Search s.c.. All Rights Reserved.