|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gameframe.graphics.BitmapEffect | +--gameframe.graphics.ScaleEffect
Scales the image the given amount. The new image will have its size set accordingly.
Field Summary | |
protected float |
m_flScale
The scale factor to be applied. |
Constructor Summary | |
ScaleEffect()
|
Method Summary | |
float |
getScale()
Returns the amount of scaling applied to the image. |
BitmapData |
processData(BitmapData data)
Scales the image the given amount. |
void |
reset()
Resets the effect settings to default values (no scaling is applied). |
void |
setScale(float scale)
Sets the amount of scaling applied to the image. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected float m_flScale
Constructor Detail |
public ScaleEffect()
Method Detail |
public void setScale(float scale)
scale
- The scale to be applied.public float getScale()
public void reset()
reset
in class BitmapEffect
public BitmapData processData(BitmapData data)
processData
in class BitmapEffect
data
- The raw bitmap data that is to be processed.
|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |