com.github.cage.image
Class ScaleConfig

java.lang.Object
  extended by com.github.cage.image.ScaleConfig

public class ScaleConfig
extends Object

Used by EffectConfig to hold the scaling scalars for the captcha image.

Author:
akiraly

Constructor Summary
ScaleConfig()
          Constructor.
ScaleConfig(float x, float y)
          Constructor.
 
Method Summary
 float getX()
           
 float getY()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.