|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.libjpegturbo.turbojpeg.TJScalingFactor
public class TJScalingFactor
Fractional scaling factor
| Constructor Summary | |
|---|---|
TJScalingFactor(int num,
int denom)
|
|
| Method Summary | |
|---|---|
boolean |
equals(TJScalingFactor other)
Returns true or false, depending on whether this instance and other have 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TJScalingFactor(int num,
int denom)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public int getNum()
public int getDenom()
public int getScaled(int dimension)
dimension. This function
performs the integer equivalent of
ceil(dimension * scalingFactor).
dimensionpublic boolean equals(TJScalingFactor other)
other have the same numerator and denominator.
other have the same numerator and denominatorpublic boolean isOne()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||