public interface Sprite extends Image
Modifier and Type | Method and Description |
---|---|
Sprite |
clone()
Get cloned version of current sprite.
|
void |
filter(Filter filter)
Apply a filter to the sprite.
|
void |
flipHorizontal()
Flip the sprite horizontaly.
|
void |
flipVertical()
Flip the sprite verticaly.
|
int |
getHeightOriginal()
Get the current sprite height (its current size, after scaling operation).
|
java.awt.image.BufferedImage |
getSurface()
Get the sprite surface, represented by a BufferedImage, java type.
|
int |
getWidthOriginal()
Get the current sprite width (its current size, after scaling operation).
|
void |
rotate(int angle)
Rotate the sprite with the specified angle.
|
void |
scale(int percent)
Method used for sprite scaling, in order to modify its size.
|
void |
stretch(int percentWidth,
int percentHeight)
Works as scale, but using differents width and height factor.
|
getHeight, getWidth, render
void scale(int percent)
percent
- value for scaling.void stretch(int percentWidth, int percentHeight)
percentWidth
- percent value for scaling width.percentHeight
- percent value for scaling height.void rotate(int angle)
angle
- rotation angle.void flipHorizontal()
void flipVertical()
void filter(Filter filter)
filter
- filter to use.int getWidthOriginal()
int getHeightOriginal()
java.awt.image.BufferedImage getSurface()
getSurface
in interface Image