com.github.cage.image
Class ScaleConfig
java.lang.Object
com.github.cage.image.ScaleConfig
public class ScaleConfig
- extends Object
Used by EffectConfig
to hold the scaling scalars for the captcha
image.
- Author:
- akiraly
Method Summary |
float |
getX()
|
float |
getY()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScaleConfig
public ScaleConfig()
- Constructor.
ScaleConfig
public ScaleConfig(float x,
float y)
- Constructor.
- Parameters:
x
- a value in [0f, 1f]. 1 means the captcha will fill the whole
width of the picture.y
- a value in [0f, 1f]. 1 means the captcha will fill the whole
height of the picture.
getX
public float getX()
- Returns:
- scale by the x axis
getY
public float getY()
- Returns:
- scale by the y axis
Copyright © 2011. All Rights Reserved.