public final class TiffFormat extends ImageFormat implements IExif, IXmp
Represents TIFF format.
Constructor and Description |
---|
TiffFormat(InputStream input)
Initializes a new instance of the
TiffFormat class. |
TiffFormat(String fileName)
Initializes a new instance of the
TiffFormat class. |
Modifier and Type | Method and Description |
---|---|
DublinCoreMetadata |
getDublinCore()
Gets Dublin Core metadata.
|
ExifInfo |
getExifInfo()
Returns EXIF data.
|
ExifInfo |
getExifValues()
Gets
ExifInfo . |
GpsLocation |
getGpsLocation()
Gets GPS coordinates where a photo was taken.
|
TiffIfd[] |
getImageFileDirectories()
Gets an array of image file directories presented in TIFF.
|
IptcCollection |
getIptc()
Deprecated.
|
IptcDataSetCollection |
getIptcValues()
Gets the IPTC metadata package attached to the file.
|
TiffTag[] |
getTags(TiffIfd ifd)
Gets TIFF tags for specific IFD.
|
int |
getType()
Gets document type.
|
XmpPacketWrapper |
getXmpData()
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Returns all XMP properties presented in specific format.
|
XmpEditableCollection |
getXmpValues()
Gets
XmpEditableCollection . |
boolean |
hasIptc()
Deprecated.
|
boolean |
hasXmp()
Gets a value indicating whether this instance has XMP.
|
boolean |
removeExifInfo()
Removes EXIF metadata.
|
boolean |
removeGpsLocation()
Removes GPS coordinates of the photo.
|
void |
removeXmpData()
Removes all XMP data.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Updates XMP packet.
|
boolean |
updateExifInfo(ExifInfo exifInfo)
Updates EXIF data in TIFF format.
|
cleanMetadata, fromFile, fromFile, fromStream, getByteOrder, getHeight, getWidth
close, dispose, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public TiffFormat(String fileName)
Initializes a new instance of the TiffFormat
class.
fileName
- Absolute path to the file.public TiffFormat(InputStream input)
Initializes a new instance of the TiffFormat
class.
input
- File stream.public int getType()
Gets document type.
getType
in class FormatBase
public final boolean hasXmp()
Gets a value indicating whether this instance has XMP.
public final TiffIfd[] getImageFileDirectories()
Gets an array of image file directories presented in TIFF.
public final ExifInfo getExifValues()
Gets ExifInfo
. Provides access for all EXIF properties.
getExifValues
in interface IExif
public final IptcDataSetCollection getIptcValues()
Gets the IPTC metadata package attached to the file.
public final XmpEditableCollection getXmpValues()
Gets XmpEditableCollection
. Provides access for all XMP properties in edit mode.
getXmpValues
in interface IXmp
@Deprecated public final boolean hasIptc()
Gets true if image contains IPTC IIM metadata.
true
if image has IPTC IIM metadata; otherwise, false
.public final TiffTag[] getTags(TiffIfd ifd)
Gets TIFF tags for specific IFD.
ifd
- Image file directory.TiffTag
.public final ExifInfo getExifInfo()
Returns EXIF data.
getExifInfo
in interface IExif
ExifInfo
if image contains EXIF data; otherwise null.public final boolean updateExifInfo(ExifInfo exifInfo)
Updates EXIF data in TIFF format.
updateExifInfo
in interface IExif
exifInfo
- EXIF data.
public final boolean removeExifInfo()
Removes EXIF metadata.
removeExifInfo
in interface IExif
true
if EXIF data found and removed; otherwise false
.
public final boolean removeGpsLocation()
Removes GPS coordinates of the photo.
removeGpsLocation
in interface IExif
public final GpsLocation getGpsLocation()
Gets GPS coordinates where a photo was taken.
getGpsLocation
in interface IExif
public final XmpPacketWrapper getXmpData()
Returns the XMP packet.
getXmpData
in interface IXmp
XmpPacketWrapper
if XMP data is presented; otherwise null.public final XmpProperties getXmpProperties()
Returns all XMP properties presented in specific format.
getXmpProperties
in interface IXmp
XmpProperties
if XMP data is presented; otherwise null.public final boolean setXmpData(XmpPacketWrapper package_)
Updates XMP packet.
setXmpData
in interface IXmp
package
- XMP packet wrapper.true
if the XMP is successfully updated; otherwise false
.ArgumentNullException
- Package could not be null.public final void removeXmpData()
Removes all XMP data.
removeXmpData
in interface IXmp
public final DublinCoreMetadata getDublinCore()
Gets Dublin Core metadata.
getDublinCore
in interface IDublinCore
DublinCoreMetadata
if Dublin Core metadata is presented; otherwise null.
@Deprecated public final IptcCollection getIptc()
Gets the IPTC collection.
IptcCollection
.Copyright © 2019. All rights reserved.