Package loci.formats.tiff
Class IFD
- All Implemented Interfaces:
Serializable,Cloneable,Map<Integer,Object>
Data structure for working with TIFF Image File Directories (IFDs).
- Author:
- Curtis Rueden ctrueden at wisc.edu, Eric Kjellman egkjellman at wisc.edu, Melissa Linkert melissa at glencoesoftware.com, Chris Allan callan at blackcat.ca
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intEXIF tags.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprivate static final org.slf4j.Loggerstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]Retrieves the image's bits per sample (TIFF tag BitsPerSample) from a given TIFF IFD.longgetByteCount(boolean bigTiff) Get the maximum number of bytes needed to represent this IFD.int[]Retrieves the image's bytes per sample (derived from tag BitsPerSample) from this IFD.Convenience method for obtaining the ImageDescription from this IFD.Retrieves the image's compression type (TIFF tag Compression) from this IFD.static StringgetFieldName(int value) This method uses reflection to scan the values of this class's static fields, returning the first matching field's name.int[]getIFDIntArray(int tag) Gets the given directory entry values in int format from this IFD, performing some error checking.intgetIFDIntValue(int tag) Gets the given directory entry value in int format from this IFD, or -1 if the given directory does not exist.intgetIFDIntValue(int tag, int defaultValue) Gets the given directory entry value in int format from this IFD, performing some error checking.long[]getIFDLongArray(int tag) Gets the given directory entry values in long format from this IFD, performing some error checking.longgetIFDLongValue(int tag, long defaultValue) Gets the given directory entry value in long format from this IFD, performing some error checking.getIFDRationalValue(int tag) Gets the given directory entry value in rational format from this IFD, performing some error checking.short[]getIFDShortArray(int tag) Gets the given directory entry values in short format from this IFD, performing some error checking.getIFDStringValue(int tag) Gets the given directory entry value as a string from this IFD, performing some error checking.static StringgetIFDTagName(int tag) Gets the name of the IFD tag encoded by the given number.getIFDTextValue(int tag) Gets the given directory entry value as a string (regardless of type).getIFDValue(int tag) Gets the given directory entry value from this IFD.getIFDValue(int tag, Class checkClass) Gets the given directory entry value from this IFD, performing some error checking.longRetrieves the image's length (TIFF tag ImageLength) from a given TIFF IFD.longRetrieves the image's width (TIFF tag ImageWidth) from a given TIFF IFD.Retrieves the image's photometric interpretation (TIFF tag PhotometricInterpretation) from this IFD.intRetrieves the image's pixel type based on the BitsPerSample tag.intRetrieves the image's planar configuration (TIFF tag PlanarConfiguration) from this IFD.intRetrieve the value by which to multiply the X and Y resolution so that the resolutions are in microns per pixel.long[]Retrieves the number of rows per strip for image (TIFF tag RowsPerStrip) from this IFD.intRetrieves the number of samples per pixel for the image (TIFF tag SamplesPerPixel) from this IFD.long[]Retrieves strip byte counts for the image (TIFF tag StripByteCounts) from this IFD.long[]Retrieves the strip offsets for the image (TIFF tag StripOffsets) from this IFD.longReturns the length of an image tile.longReturns the number of image tiles per column.longReturns the number of image tiles per row.longReturns the width of an image tile.doubleRetrieve the X resolution (TIFF tag XResolution) from this IFD.doubleRetrieve the Y resolution (TIFF tag YResolution) from this IFD.booleanGets whether this is a BigTIFF IFD.booleanGets whether the TIFF information in this IFD is little-endian.booleanisTiled()voidprintIFD()Prints the contents of this IFD.voidputIFDValue(int tag, int value) Adds a directory entry of type SHORT to this IFD.voidputIFDValue(int tag, long value) Adds a directory entry of type LONG to this IFD.voidputIFDValue(int tag, short value) Adds a directory entry of type BYTE to this IFD.voidputIFDValue(int tag, Object value) Adds a directory entry to this IFD.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
LITTLE_ENDIAN
public static final int LITTLE_ENDIAN- See Also:
-
BIG_TIFF
public static final int BIG_TIFF- See Also:
-
REUSE
public static final int REUSE- See Also:
-
NEW_SUBFILE_TYPE
public static final int NEW_SUBFILE_TYPE- See Also:
-
SUBFILE_TYPE
public static final int SUBFILE_TYPE- See Also:
-
IMAGE_WIDTH
public static final int IMAGE_WIDTH- See Also:
-
IMAGE_LENGTH
public static final int IMAGE_LENGTH- See Also:
-
BITS_PER_SAMPLE
public static final int BITS_PER_SAMPLE- See Also:
-
COMPRESSION
public static final int COMPRESSION- See Also:
-
PHOTOMETRIC_INTERPRETATION
public static final int PHOTOMETRIC_INTERPRETATION- See Also:
-
THRESHHOLDING
public static final int THRESHHOLDING- See Also:
-
CELL_WIDTH
public static final int CELL_WIDTH- See Also:
-
CELL_LENGTH
public static final int CELL_LENGTH- See Also:
-
FILL_ORDER
public static final int FILL_ORDER- See Also:
-
DOCUMENT_NAME
public static final int DOCUMENT_NAME- See Also:
-
IMAGE_DESCRIPTION
public static final int IMAGE_DESCRIPTION- See Also:
-
MAKE
public static final int MAKE- See Also:
-
MODEL
public static final int MODEL- See Also:
-
STRIP_OFFSETS
public static final int STRIP_OFFSETS- See Also:
-
ORIENTATION
public static final int ORIENTATION- See Also:
-
SAMPLES_PER_PIXEL
public static final int SAMPLES_PER_PIXEL- See Also:
-
ROWS_PER_STRIP
public static final int ROWS_PER_STRIP- See Also:
-
STRIP_BYTE_COUNTS
public static final int STRIP_BYTE_COUNTS- See Also:
-
MIN_SAMPLE_VALUE
public static final int MIN_SAMPLE_VALUE- See Also:
-
MAX_SAMPLE_VALUE
public static final int MAX_SAMPLE_VALUE- See Also:
-
X_RESOLUTION
public static final int X_RESOLUTION- See Also:
-
Y_RESOLUTION
public static final int Y_RESOLUTION- See Also:
-
PLANAR_CONFIGURATION
public static final int PLANAR_CONFIGURATION- See Also:
-
PAGE_NAME
public static final int PAGE_NAME- See Also:
-
X_POSITION
public static final int X_POSITION- See Also:
-
Y_POSITION
public static final int Y_POSITION- See Also:
-
FREE_OFFSETS
public static final int FREE_OFFSETS- See Also:
-
FREE_BYTE_COUNTS
public static final int FREE_BYTE_COUNTS- See Also:
-
GRAY_RESPONSE_UNIT
public static final int GRAY_RESPONSE_UNIT- See Also:
-
GRAY_RESPONSE_CURVE
public static final int GRAY_RESPONSE_CURVE- See Also:
-
T4_OPTIONS
public static final int T4_OPTIONS- See Also:
-
T6_OPTIONS
public static final int T6_OPTIONS- See Also:
-
RESOLUTION_UNIT
public static final int RESOLUTION_UNIT- See Also:
-
PAGE_NUMBER
public static final int PAGE_NUMBER- See Also:
-
TRANSFER_FUNCTION
public static final int TRANSFER_FUNCTION- See Also:
-
SOFTWARE
public static final int SOFTWARE- See Also:
-
DATE_TIME
public static final int DATE_TIME- See Also:
-
ARTIST
public static final int ARTIST- See Also:
-
HOST_COMPUTER
public static final int HOST_COMPUTER- See Also:
-
PREDICTOR
public static final int PREDICTOR- See Also:
-
WHITE_POINT
public static final int WHITE_POINT- See Also:
-
PRIMARY_CHROMATICITIES
public static final int PRIMARY_CHROMATICITIES- See Also:
-
COLOR_MAP
public static final int COLOR_MAP- See Also:
-
HALFTONE_HINTS
public static final int HALFTONE_HINTS- See Also:
-
TILE_WIDTH
public static final int TILE_WIDTH- See Also:
-
TILE_LENGTH
public static final int TILE_LENGTH- See Also:
-
TILE_OFFSETS
public static final int TILE_OFFSETS- See Also:
-
TILE_BYTE_COUNTS
public static final int TILE_BYTE_COUNTS- See Also:
-
SUB_IFD
public static final int SUB_IFD- See Also:
-
INK_SET
public static final int INK_SET- See Also:
-
INK_NAMES
public static final int INK_NAMES- See Also:
-
NUMBER_OF_INKS
public static final int NUMBER_OF_INKS- See Also:
-
DOT_RANGE
public static final int DOT_RANGE- See Also:
-
TARGET_PRINTER
public static final int TARGET_PRINTER- See Also:
-
EXTRA_SAMPLES
public static final int EXTRA_SAMPLES- See Also:
-
SAMPLE_FORMAT
public static final int SAMPLE_FORMAT- See Also:
-
S_MIN_SAMPLE_VALUE
public static final int S_MIN_SAMPLE_VALUE- See Also:
-
S_MAX_SAMPLE_VALUE
public static final int S_MAX_SAMPLE_VALUE- See Also:
-
TRANSFER_RANGE
public static final int TRANSFER_RANGE- See Also:
-
JPEG_TABLES
public static final int JPEG_TABLES- See Also:
-
JPEG_PROC
public static final int JPEG_PROC- See Also:
-
JPEG_INTERCHANGE_FORMAT
public static final int JPEG_INTERCHANGE_FORMAT- See Also:
-
JPEG_INTERCHANGE_FORMAT_LENGTH
public static final int JPEG_INTERCHANGE_FORMAT_LENGTH- See Also:
-
JPEG_RESTART_INTERVAL
public static final int JPEG_RESTART_INTERVAL- See Also:
-
JPEG_LOSSLESS_PREDICTORS
public static final int JPEG_LOSSLESS_PREDICTORS- See Also:
-
JPEG_POINT_TRANSFORMS
public static final int JPEG_POINT_TRANSFORMS- See Also:
-
JPEG_Q_TABLES
public static final int JPEG_Q_TABLES- See Also:
-
JPEG_DC_TABLES
public static final int JPEG_DC_TABLES- See Also:
-
JPEG_AC_TABLES
public static final int JPEG_AC_TABLES- See Also:
-
Y_CB_CR_COEFFICIENTS
public static final int Y_CB_CR_COEFFICIENTS- See Also:
-
Y_CB_CR_SUB_SAMPLING
public static final int Y_CB_CR_SUB_SAMPLING- See Also:
-
Y_CB_CR_POSITIONING
public static final int Y_CB_CR_POSITIONING- See Also:
-
REFERENCE_BLACK_WHITE
public static final int REFERENCE_BLACK_WHITE- See Also:
-
COPYRIGHT
public static final int COPYRIGHT- See Also:
-
EXIF
public static final int EXIF- See Also:
-
EXPOSURE_TIME
public static final int EXPOSURE_TIMEEXIF tags.- See Also:
-
F_NUMBER
public static final int F_NUMBER- See Also:
-
EXPOSURE_PROGRAM
public static final int EXPOSURE_PROGRAM- See Also:
-
SPECTRAL_SENSITIVITY
public static final int SPECTRAL_SENSITIVITY- See Also:
-
ISO_SPEED_RATINGS
public static final int ISO_SPEED_RATINGS- See Also:
-
OECF
public static final int OECF- See Also:
-
EXIF_VERSION
public static final int EXIF_VERSION- See Also:
-
DATE_TIME_ORIGINAL
public static final int DATE_TIME_ORIGINAL- See Also:
-
DATE_TIME_DIGITIZED
public static final int DATE_TIME_DIGITIZED- See Also:
-
COMPONENTS_CONFIGURATION
public static final int COMPONENTS_CONFIGURATION- See Also:
-
COMPRESSED_BITS_PER_PIXEL
public static final int COMPRESSED_BITS_PER_PIXEL- See Also:
-
SHUTTER_SPEED_VALUE
public static final int SHUTTER_SPEED_VALUE- See Also:
-
APERTURE_VALUE
public static final int APERTURE_VALUE- See Also:
-
BRIGHTNESS_VALUE
public static final int BRIGHTNESS_VALUE- See Also:
-
EXPOSURE_BIAS_VALUE
public static final int EXPOSURE_BIAS_VALUE- See Also:
-
MAX_APERTURE_VALUE
public static final int MAX_APERTURE_VALUE- See Also:
-
SUBJECT_DISTANCE
public static final int SUBJECT_DISTANCE- See Also:
-
METERING_MODE
public static final int METERING_MODE- See Also:
-
LIGHT_SOURCE
public static final int LIGHT_SOURCE- See Also:
-
FLASH
public static final int FLASH- See Also:
-
FOCAL_LENGTH
public static final int FOCAL_LENGTH- See Also:
-
MAKER_NOTE
public static final int MAKER_NOTE- See Also:
-
USER_COMMENT
public static final int USER_COMMENT- See Also:
-
SUB_SEC_TIME
public static final int SUB_SEC_TIME- See Also:
-
SUB_SEC_TIME_ORIGINAL
public static final int SUB_SEC_TIME_ORIGINAL- See Also:
-
SUB_SEC_TIME_DIGITIZED
public static final int SUB_SEC_TIME_DIGITIZED- See Also:
-
FLASH_PIX_VERSION
public static final int FLASH_PIX_VERSION- See Also:
-
COLOR_SPACE
public static final int COLOR_SPACE- See Also:
-
PIXEL_X_DIMENSION
public static final int PIXEL_X_DIMENSION- See Also:
-
PIXEL_Y_DIMENSION
public static final int PIXEL_Y_DIMENSION- See Also:
-
RELATED_SOUND_FILE
public static final int RELATED_SOUND_FILE- See Also:
-
FLASH_ENERGY
public static final int FLASH_ENERGY- See Also:
-
SPATIAL_FREQUENCY_RESPONSE
public static final int SPATIAL_FREQUENCY_RESPONSE- See Also:
-
FOCAL_PLANE_X_RESOLUTION
public static final int FOCAL_PLANE_X_RESOLUTION- See Also:
-
FOCAL_PLANE_Y_RESOLUTION
public static final int FOCAL_PLANE_Y_RESOLUTION- See Also:
-
FOCAL_PLANE_RESOLUTION_UNIT
public static final int FOCAL_PLANE_RESOLUTION_UNIT- See Also:
-
SUBJECT_LOCATION
public static final int SUBJECT_LOCATION- See Also:
-
EXPOSURE_INDEX
public static final int EXPOSURE_INDEX- See Also:
-
SENSING_METHOD
public static final int SENSING_METHOD- See Also:
-
FILE_SOURCE
public static final int FILE_SOURCE- See Also:
-
SCENE_TYPE
public static final int SCENE_TYPE- See Also:
-
CFA_PATTERN
public static final int CFA_PATTERN- See Also:
-
CUSTOM_RENDERED
public static final int CUSTOM_RENDERED- See Also:
-
EXPOSURE_MODE
public static final int EXPOSURE_MODE- See Also:
-
WHITE_BALANCE
public static final int WHITE_BALANCE- See Also:
-
DIGITAL_ZOOM_RATIO
public static final int DIGITAL_ZOOM_RATIO- See Also:
-
FOCAL_LENGTH_35MM_FILM
public static final int FOCAL_LENGTH_35MM_FILM- See Also:
-
SCENE_CAPTURE_TYPE
public static final int SCENE_CAPTURE_TYPE- See Also:
-
GAIN_CONTROL
public static final int GAIN_CONTROL- See Also:
-
CONTRAST
public static final int CONTRAST- See Also:
-
SATURATION
public static final int SATURATION- See Also:
-
SHARPNESS
public static final int SHARPNESS- See Also:
-
SUBJECT_DISTANCE_RANGE
public static final int SUBJECT_DISTANCE_RANGE- See Also:
-
-
Constructor Details
-
IFD
public IFD() -
IFD
-
-
Method Details
-
getByteCount
Get the maximum number of bytes needed to represent this IFD.- Throws:
FormatException
-
isBigTiff
Gets whether this is a BigTIFF IFD.- Throws:
FormatException
-
isLittleEndian
Gets whether the TIFF information in this IFD is little-endian.- Throws:
FormatException
-
getIFDValue
Gets the given directory entry value from this IFD. -
getIFDValue
Gets the given directory entry value from this IFD, performing some error checking.- Throws:
FormatException
-
getIFDLongValue
Gets the given directory entry value in long format from this IFD, performing some error checking.- Throws:
FormatException
-
getIFDIntValue
public int getIFDIntValue(int tag) Gets the given directory entry value in int format from this IFD, or -1 if the given directory does not exist. -
getIFDIntValue
Gets the given directory entry value in int format from this IFD, performing some error checking.- Throws:
FormatException
-
getIFDRationalValue
Gets the given directory entry value in rational format from this IFD, performing some error checking.- Throws:
FormatException
-
getIFDStringValue
Gets the given directory entry value as a string from this IFD, performing some error checking.- Throws:
FormatException
-
getIFDTextValue
Gets the given directory entry value as a string (regardless of type). -
getIFDLongArray
Gets the given directory entry values in long format from this IFD, performing some error checking.- Throws:
FormatException
-
getIFDIntArray
Gets the given directory entry values in int format from this IFD, performing some error checking.- Throws:
FormatException
-
getIFDShortArray
Gets the given directory entry values in short format from this IFD, performing some error checking.- Throws:
FormatException
-
getComment
Convenience method for obtaining the ImageDescription from this IFD. -
getTileWidth
Returns the width of an image tile.- Throws:
FormatException
-
getTileLength
Returns the length of an image tile.- Throws:
FormatException
-
getTilesPerRow
Returns the number of image tiles per row.- Throws:
FormatException
-
getTilesPerColumn
Returns the number of image tiles per column.- Throws:
FormatException
-
isTiled
- Throws:
FormatException
-
getImageWidth
Retrieves the image's width (TIFF tag ImageWidth) from a given TIFF IFD.- Returns:
- the image's width.
- Throws:
FormatException- if there is a problem parsing the IFD metadata.
-
getImageLength
Retrieves the image's length (TIFF tag ImageLength) from a given TIFF IFD.- Returns:
- the image's length.
- Throws:
FormatException- if there is a problem parsing the IFD metadata.
-
getBitsPerSample
Retrieves the image's bits per sample (TIFF tag BitsPerSample) from a given TIFF IFD.- Returns:
- the image's bits per sample. The length of the array is equal to the number of samples per pixel.
- Throws:
FormatException- if there is a problem parsing the IFD metadata.- See Also:
-
getPixelType
Retrieves the image's pixel type based on the BitsPerSample tag.- Returns:
- the pixel type. This is one of:
- FormatTools.INT8
- FormatTools.UINT8
- FormatTools.INT16
- FormatTools.UINT16
- FormatTools.INT32
- FormatTools.UINT32
- FormatTools.FLOAT
- FormatTools.DOUBLE
- Throws:
FormatException- if there is a problem parsing the IFD metadata.- See Also:
-
getBytesPerSample
Retrieves the image's bytes per sample (derived from tag BitsPerSample) from this IFD.- Returns:
- the image's bytes per sample. The length of the array is equal to the number of samples per pixel.
- Throws:
FormatException- if there is a problem parsing the IFD metadata.- See Also:
-
getSamplesPerPixel
Retrieves the number of samples per pixel for the image (TIFF tag SamplesPerPixel) from this IFD.- Returns:
- the number of samples per pixel.
- Throws:
FormatException- if there is a problem parsing the IFD metadata.
-
getCompression
Retrieves the image's compression type (TIFF tag Compression) from this IFD.- Returns:
- the image's compression type. As of TIFF 6.0 this is one of:
- Uncompressed (1)
- CCITT 1D (2)
- Group 3 Fax (3)
- Group 4 Fax (4)
- LZW (5)
- JPEG (6)
- PackBits (32773)
TiffCompressionfor more details. - Throws:
FormatException- if there is a problem parsing the IFD metadata.
-
getPhotometricInterpretation
Retrieves the image's photometric interpretation (TIFF tag PhotometricInterpretation) from this IFD.- Returns:
- the image's photometric interpretation. As of TIFF 6.0 this is one
of:
- WhiteIsZero (0)
- BlackIsZero (1)
- RGB (2)
- RGB Palette (3)
- Transparency mask (4)
- CMYK (5)
- YbCbCr (6)
- CIELab (8)
- Throws:
FormatException- if there is a problem parsing the IFD metadata.
-
getPlanarConfiguration
Retrieves the image's planar configuration (TIFF tag PlanarConfiguration) from this IFD.- Returns:
- the image's planar configuration. As of TIFF 6.0 this is one of:
- Chunky (1)
- Planar (2)
- Throws:
FormatException- if there is a problem parsing the IFD metadata.
-
getStripOffsets
Retrieves the strip offsets for the image (TIFF tag StripOffsets) from this IFD.- Returns:
- the strip offsets for the image. The length of the array is equal to the number of strips per image. StripsPerImage = floor ((ImageLength + RowsPerStrip - 1) / RowsPerStrip).
- Throws:
FormatException- if there is a problem parsing the IFD metadata.- See Also:
-
getOnDemandStripOffsets
- Throws:
FormatException
-
getStripByteCounts
Retrieves strip byte counts for the image (TIFF tag StripByteCounts) from this IFD.- Returns:
- the byte counts for each strip. The length of the array is equal to the number of strips per image. StripsPerImage = floor((ImageLength + RowsPerStrip - 1) / RowsPerStrip).
- Throws:
FormatException- if there is a problem parsing the IFD metadata.- See Also:
-
getRowsPerStrip
Retrieves the number of rows per strip for image (TIFF tag RowsPerStrip) from this IFD.- Returns:
- the number of rows per strip.
- Throws:
FormatException- if there is a problem parsing the IFD metadata.
-
getResolutionMultiplier
public int getResolutionMultiplier()Retrieve the value by which to multiply the X and Y resolution so that the resolutions are in microns per pixel. -
getXResolution
Retrieve the X resolution (TIFF tag XResolution) from this IFD. The resolution will be normalized to microns per pixel.- Returns:
- the X resolution, in microns per pixel
- Throws:
FormatException- if there is a problem parsing the IFD metadata.
-
getYResolution
Retrieve the Y resolution (TIFF tag YResolution) from this IFD. The resolution will be normalized to microns per pixel.- Returns:
- the Y resolution, in microns per pixel
- Throws:
FormatException- if there is a problem parsing the IFD metadata.
-
putIFDValue
Adds a directory entry to this IFD. -
putIFDValue
public void putIFDValue(int tag, short value) Adds a directory entry of type BYTE to this IFD. -
putIFDValue
public void putIFDValue(int tag, int value) Adds a directory entry of type SHORT to this IFD. -
putIFDValue
public void putIFDValue(int tag, long value) Adds a directory entry of type LONG to this IFD. -
printIFD
public void printIFD()Prints the contents of this IFD. -
getIFDTagName
Gets the name of the IFD tag encoded by the given number. -
getFieldName
This method uses reflection to scan the values of this class's static fields, returning the first matching field's name. It is probably not very efficient, and is mainly intended for debugging.
-