|
||||||||||
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.ShortTag
rebuild.graphics.tiff.tags.ExtraSamplesTag
public final class ExtraSamplesTag
Description of extra components.
Field Summary | |
---|---|
static short |
ASSOCALPHA
Associated alpha data (with pre-multiplied color) |
static short |
UNASSALPHA
Unassociated alpha data |
static short |
UNSPECIFIED
Unspecified data |
Fields inherited from class rebuild.graphics.tiff.Tag |
---|
count, data, dataType, value |
Constructor Summary | |
---|---|
ExtraSamplesTag(short sample)
Create a new ExtraSamples tag. |
|
ExtraSamplesTag(short[] samples)
Create a new ExtraSamples tag. |
Method Summary | |
---|---|
void |
addSample(short sample)
Add a sample to the ExtraSamplesTag . |
short |
getSample(int index)
Get a sample at the specified index. |
static short |
getTagTypeValue()
Get the Tag 's type. |
void |
removeSample(int index)
Remove a sample at the specified index. |
void |
setCount(int count)
Count determined can be changed with addSample /removeSample . |
void |
setSample(int index,
short sample)
Set a sample at the specified index. |
void |
setValue(int sample)
Set the first sample value in the ExtraSamples tag. |
Methods inherited from class rebuild.graphics.tiff.tags.ShortTag |
---|
extraData, getShort, hasDefault, isDefault, setDataType, setExtraData, setShort, 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 |
Field Detail |
---|
public static final short UNSPECIFIED
public static final short ASSOCALPHA
public static final short UNASSALPHA
Constructor Detail |
---|
public ExtraSamplesTag(short sample)
samples
- A single extra sample, what type of sample it represents.public ExtraSamplesTag(short[] samples)
samples
- Multiple extra samples, what type of samples it represents.Method Detail |
---|
public static short getTagTypeValue()
Tag
's type.
Tag
's type.public void setCount(int count)
addSample
/removeSample
.
setCount
in class ShortTag
count
- The number of Writer.SHORT
contained in the tag. If the number is bigger than the current count then it will add 0 Writer.SHORT
, else it will remove the Writer.SHORT
.setCount
public void setValue(int sample)
setValue
in class Tag
sample
- The value to set the sample to.getValue
public void addSample(short sample)
ExtraSamplesTag
.
sample
- The sample type to add.public void removeSample(int index)
index
- The index to remove.public short getSample(int index)
index
- The index to get the sample.
public void setSample(int index, short sample)
index
- The index to set the sample.sample
- The extra sample to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |