|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.graphics.tiff.Tag
rebuild.graphics.tiff.tags.RationalTag
rebuild.graphics.tiff.tags.YResolutionTag
public final class YResolutionTag
The number of pixels per ResolutionUnitTag
in the ImageLengthTag
direction.
Field Summary |
---|
Fields inherited from class rebuild.graphics.tiff.Tag |
---|
count, data, dataType, value |
Constructor Summary | |
---|---|
YResolutionTag(int num,
int den)
Create a new YResolutionTag . |
Method Summary | |
---|---|
int |
getDenominator()
Get the denominator. |
int |
getNumerator()
Get the numerator. |
static short |
getTagTypeValue()
Get the Tag 's type. |
void |
setCount(int count)
There is always only 1 element. |
void |
setDenominator(int den)
Set the denominator. |
void |
setNumerator(int num)
Set the numerator. |
void |
setValue(int value)
Unused |
Methods inherited from class rebuild.graphics.tiff.tags.RationalTag |
---|
extraData, getDenominator, getNumerator, hasDefault, isDefault, setDataType, setDenominator, setExtraData, setNumerator, setupForBigTIFF, writeData |
Methods inherited from class rebuild.graphics.tiff.Tag |
---|
equals, getBigCount, getBigValue, getCount, getDataType, getExtraData, getIfExtraDataExists, getTagType, getValue, hashCode, setCount, setValue, toString, write, write, write, write, writeBig |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public YResolutionTag(int num, int den)
YResolutionTag
.
num
- The numerator, usually the image length but this may not work properly.den
- The denominator, usually the image unit (inch, cm, undefined) but this may not work properly.Method Detail |
---|
public static short getTagTypeValue()
Tag
's type.
Tag
's type.public int getNumerator()
public int getDenominator()
public void setNumerator(int num)
num
- The numerator, usually the image length but this may not work properly.public void setDenominator(int den)
den
- The denominator, usually the image unit (inch, cm, undefined) but this may not work properly.public void setCount(int count)
setCount
in class RationalTag
count
- The number of Writer.RATIONAL
contained in the tag. If the number is bigger than the current count then it will add 0/1 Writer.RATIONAL
, else it will remove the Writer.RATIONAL
.setCount
public void setValue(int value)
setValue
in class Tag
value
- The value that the tag should contains.setValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |