|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jiu.codecs.tiff.TIFFImageFileDirectory
This class encapsulates all data of a TIFF image file directory (IFD).
Field Summary | |
static int |
TYPE_BILEVEL_BYTE
|
static int |
TYPE_BILEVEL_PACKED
|
static int |
TYPE_CMYK32_INTERLEAVED
|
static int |
TYPE_CMYK32_PLANAR
|
static int |
TYPE_GRAY16
|
static int |
TYPE_GRAY4
|
static int |
TYPE_GRAY8
|
static int |
TYPE_LOGL
|
static int |
TYPE_LOGLUV32_INTERLEAVED
|
static int |
TYPE_PALETTED4
|
static int |
TYPE_PALETTED8
|
static int |
TYPE_RGB24_INTERLEAVED
|
static int |
TYPE_RGB48_INTERLEAVED
|
Constructor Summary | |
TIFFImageFileDirectory()
Initializes all members to null or -1 and creates an internal list for the tags that will be make up this directory. |
Method Summary | |
void |
append(TIFFTag tag)
Adds a tag to the end of the internal list of tags. |
int |
computeNumBytes(int numPixels)
TODO: regard extra samples |
String |
getArtist()
Returns information on the person who created the image (as stored in tag TIFFConstants.TAG_ARTIST ). |
int |
getBitsPerPixel()
Returns the number of bits per pixel (not including transparency information). |
int |
getByteCount(int tileIndex)
Returns the number of compressed byte for a given tile. |
int |
getBytesPerRow()
|
int |
getCompression()
Returns the compression method, encoded as a number as found in TIFFConstants (more specifically, the COMPRESSION_xyz constants).
|
static String |
getCompressionName(int method)
Returns the name of a TIFF compression method. |
String |
getCopyright()
|
Date |
getDateTime()
If a date / time tag was found in this image file directory and initFromTags(boolean) was called already, it was attempted to
create a Date object from it.
|
String |
getDateTimeString()
If there was a date / time tag in this IFD, its String value is returned. |
int |
getDpiX()
|
int |
getDpiY()
|
int |
getHeight()
|
String |
getHostComputer()
|
String |
getImageDescription()
|
int |
getImageType()
|
String |
getModel()
|
int |
getNumHorizontalTiles()
|
int |
getNumStrips()
|
int |
getNumTiles()
|
int |
getNumVerticalTiles()
|
Palette |
getPalette()
|
int |
getPhotometricInterpretation()
|
int |
getPredictor()
|
int |
getRowsPerStrip()
|
int |
getSamplesPerPixel()
|
String |
getSoftware()
|
Vector |
getStripOffsets()
|
int |
getT4Options()
|
int |
getT6Options()
|
int |
getTileHeight()
|
long |
getTileOffset(int tileIndex)
|
int |
getTileWidth()
|
int |
getTileX1(int tileIndex)
|
int |
getTileX2(int tileIndex)
|
int |
getTileY1(int tileIndex)
|
int |
getTileY2(int tileIndex)
|
int |
getWidth()
|
void |
initFromTags(boolean check)
|
void |
initMembers()
|
boolean |
isGrayscale()
|
boolean |
isPaletted()
|
boolean |
isStriped()
Returns true if the image belonging to this IFD
is stored as strips, false otherwise. |
boolean |
isTiled()
Returns true if the image belonging to this IFD
is stored as tiles, false otherwise. |
void |
setTimeZone(TimeZone tz)
Sets the time zone to be used when trying to interpret dates found in a TIFFConstants.TAG_DATE_TIME tag.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_BILEVEL_PACKED
public static final int TYPE_GRAY4
public static final int TYPE_GRAY8
public static final int TYPE_GRAY16
public static final int TYPE_PALETTED4
public static final int TYPE_PALETTED8
public static final int TYPE_RGB24_INTERLEAVED
public static final int TYPE_RGB48_INTERLEAVED
public static final int TYPE_BILEVEL_BYTE
public static final int TYPE_CMYK32_INTERLEAVED
public static final int TYPE_CMYK32_PLANAR
public static final int TYPE_LOGLUV32_INTERLEAVED
public static final int TYPE_LOGL
Constructor Detail |
public TIFFImageFileDirectory()
Method Detail |
public void append(TIFFTag tag)
tag
- the TIFFTag instance to be appendedpublic int computeNumBytes(int numPixels)
public String getArtist()
TIFFConstants.TAG_ARTIST
).
public int getBitsPerPixel()
public int getByteCount(int tileIndex)
tileIndex
- zero-based index of tile or strip for which the number of compressed bytes is to be returnedpublic int getBytesPerRow()
public int getCompression()
TIFFConstants
(more specifically, the COMPRESSION_xyz constants).
Use getCompressionName(int)
to get the English name
of this compression method.
public static String getCompressionName(int method)
getCompression()
.
method
- the compression method number
public String getCopyright()
public Date getDateTime()
initFromTags(boolean)
was called already, it was attempted to
create a Date
object from it.
This object (or null
) is returned.
Use setTimeZone(java.util.TimeZone)
to provide a time zone before the date
parsing is done.
getDateTimeString()
public String getDateTimeString()
getDateTime()
public int getDpiX()
public int getDpiY()
public int getHeight()
public String getHostComputer()
public String getImageDescription()
public int getImageType()
public String getModel()
public int getNumHorizontalTiles()
public int getNumStrips()
public int getNumTiles()
public int getNumVerticalTiles()
public Palette getPalette()
public int getPhotometricInterpretation()
public int getPredictor()
public int getRowsPerStrip()
public int getSamplesPerPixel()
public String getSoftware()
public Vector getStripOffsets()
public int getT4Options()
public int getT6Options()
public int getTileHeight()
public long getTileOffset(int tileIndex)
public int getTileWidth()
public int getTileX1(int tileIndex)
public int getTileX2(int tileIndex)
public int getTileY1(int tileIndex)
public int getTileY2(int tileIndex)
public int getWidth()
public void initMembers()
public void initFromTags(boolean check) throws InvalidFileStructureException, UnsupportedTypeException
InvalidFileStructureException
UnsupportedTypeException
public boolean isGrayscale()
public boolean isPaletted()
public boolean isStriped()
true
if the image belonging to this IFD
is stored as strips, false
otherwise.
isTiled()
public boolean isTiled()
true
if the image belonging to this IFD
is stored as tiles, false
otherwise.
isStriped()
public void setTimeZone(TimeZone tz)
TIFFConstants.TAG_DATE_TIME
tag.
Example call:
setTimeZone(TimeZone.getTimeZone("America/New_York");
.
tz
- TimeZone object
|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |