@Deprecated public final class TiffFormat extends ImageFormat implements IExif, IXmp
Represents a TIFF image.
Constructor and Description |
---|
TiffFormat(InputStream input)
Deprecated.
Initializes a new instance of the
TiffFormat class. |
TiffFormat(String fileName)
Deprecated.
Initializes a new instance of the
TiffFormat class. |
Modifier and Type | Method and Description |
---|---|
DublinCoreMetadata |
getDublinCore()
Deprecated.
Retrieves the Dublin Core metadata.
|
ExifInfo |
getExifInfo()
Deprecated.
Extracts the EXIF metadata package (if found).
|
ExifInfo |
getExifValues()
Deprecated.
Gets the EXIF metadata package associated with the file.
|
GpsLocation |
getGpsLocation()
Deprecated.
Gets GPS coordinates where the photo was taken.
|
TiffIfd[] |
getImageFileDirectories()
Deprecated.
Gets an array of image file directories presented in TIFF.
|
IptcCollection |
getIptc()
Deprecated.
|
IptcDataSetCollection |
getIptcValues()
Deprecated.
Gets the IPTC metadata package attached to the file.
|
TiffTag[] |
getTags(TiffIfd ifd)
Deprecated.
Gets TIFF tags for a specific IFD.
|
int |
getType()
Deprecated.
Gets the type of the loaded file.
|
XmpPacketWrapper |
getXmpData()
Deprecated.
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Deprecated.
Returns all XMP properties presented in a specific format.
|
XmpEditableCollection |
getXmpValues()
Deprecated.
Gets a collection containing the XMP metadata properties.
|
boolean |
hasIptc()
Deprecated.
|
boolean |
hasXmp()
Deprecated.
Gets a value indicating whether the file contains XMP metadata.
|
boolean |
removeExifInfo()
Deprecated.
Removes the existing EXIF metadata package.
|
boolean |
removeGpsLocation()
Deprecated.
Removes GPS coordinates associated with the file.
|
void |
removeXmpData()
Deprecated.
Removes the XMP metadata.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Deprecated.
Updates the XMP packet.
|
boolean |
updateExifInfo(ExifInfo exifInfo)
Deprecated.
Updates EXIF metadata.
|
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
- A string that contains the full name of the file from which to create a TiffFormat
instance.public TiffFormat(InputStream input)
Initializes a new instance of the TiffFormat
class.
input
- A stream that contains the data for this TiffFormat
.public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public final boolean hasXmp()
Gets a value indicating whether the file contains XMP metadata.
public final TiffIfd[] getImageFileDirectories()
Gets an array of image file directories presented in TIFF.
public final ExifInfo getExifValues()
Gets the EXIF metadata package associated with the file.
getExifValues
in interface IExif
public final IptcDataSetCollection getIptcValues()
Gets the IPTC metadata package attached to the file.
public final XmpEditableCollection getXmpValues()
Gets a collection containing the XMP metadata properties. Provides access to 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 a specific IFD.
ifd
- An image file directory.public final ExifInfo getExifInfo()
Extracts the EXIF metadata package (if found).
getExifInfo
in interface IExif
ExifInfo
if the file contains EXIF metadata; otherwise, null.public final boolean updateExifInfo(ExifInfo exifInfo)
Updates EXIF metadata.
updateExifInfo
in interface IExif
exifInfo
- An EXIF metadata package.
true
if the EXIF package is successfully replaced; otherwise, false.public final boolean removeExifInfo()
Removes the existing EXIF metadata package.
removeExifInfo
in interface IExif
true
if the EXIF package is successfully removed; otherwise, false.
public final boolean removeGpsLocation()
Removes GPS coordinates associated with the file.
removeGpsLocation
in interface IExif
true
if the GPS location is successfully removed; otherwise, false.
public final GpsLocation getGpsLocation()
Gets GPS coordinates where the photo was taken.
getGpsLocation
in interface IExif
GpsLocation
if the file contains appropriate metadata properties; otherwise, null.
public final XmpPacketWrapper getXmpData()
Returns the XMP packet.
getXmpData
in interface IXmp
XmpPacketWrapper
if the file contains an XMP metadata package; otherwise, null.public final XmpProperties getXmpProperties()
Returns all XMP properties presented in a specific format.
getXmpProperties
in interface IXmp
XmpProperties
if the file contains an XMP metadata package; otherwise, null.public final boolean setXmpData(XmpPacketWrapper package_)
Updates the XMP packet.
setXmpData
in interface IXmp
package
- An XMP packet wrapper.true
if the XMP package is successfully updated; otherwise, false.public final void removeXmpData()
Removes the XMP metadata.
removeXmpData
in interface IXmp
public final DublinCoreMetadata getDublinCore()
Retrieves the Dublin Core metadata.
getDublinCore
in interface IDublinCore
DublinCoreMetadata
if the appropriate package is found; otherwise, null.@Deprecated public final IptcCollection getIptc()
Gets the IPTC collection.
IptcCollection
.Copyright © 2020. All rights reserved.