public class TJScalingFactor
extends java.lang.Object
| Constructor and Description | 
|---|
| TJScalingFactor(int num,
               int denom)Create a TurboJPEG scaling factor instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(TJScalingFactor other)Returns true or false, depending on whether this instance and
  otherhave the same numerator and denominator. | 
| int | getDenom()Returns denominator | 
| int | getNum()Returns numerator | 
| int | getScaled(int dimension)Returns the scaled value of  dimension. | 
| boolean | isOne()Returns true or false, depending on whether this instance is equal to
 1/1. | 
public TJScalingFactor(int num,
               int denom)
num - numeratordenom - denominatorpublic int getNum()
public int getDenom()
public int getScaled(int dimension)
dimension.  This function
 performs the integer equivalent of
 ceil(dimension * scalingFactor).dimension - width or height to multiply by this scaling factordimension.public boolean equals(TJScalingFactor other)
other have the same numerator and denominator.other - the scaling factor against which to compare this oneother have the same numerator and denominator.public boolean isOne()