@Deprecated public final class JpegFormat extends ImageFormat implements IExif, IXmp, IIptc, IBarCodeDetector, IImageResourceBlocks
Represents a JPEG image.
Constructor and Description |
---|
JpegFormat(InputStream input)
Deprecated.
Initializes a new instance of the
JpegFormat class. |
JpegFormat(String fileName)
Deprecated.
Initializes a new instance of the
JpegFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Deprecated.
Removes writable metadata properties associated with the file.
|
String[] |
getBarCodeTypes()
Deprecated.
Extracts the types of the barcodes presented in the image.
|
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.
|
ImageResourceMetadata |
getImageResourceBlocks()
Deprecated.
Gets the image resource blocks.
|
IptcCollection |
getIptc()
Deprecated.
|
IptcDataSetCollection |
getIptcValues()
Deprecated.
Gets the IPTC metadata package associated with the file.
|
MakerNotesBase |
getMakernotes()
Deprecated.
Gets the makernotes from EXIF.
|
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 |
hasBarCodes()
Deprecated.
Gets a value indicating whether image has barcodes.
|
boolean |
hasImageResourceBlocks()
Deprecated.
Gets a value indicating whether file contains Photoshop Image Resource Blocks.
|
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 |
removeIptc()
Deprecated.
|
void |
removePhotoshopData()
Deprecated.
Removes Photoshop image resource blocks.
|
void |
removeXmpData()
Deprecated.
Removes the XMP metadata.
|
boolean |
setExifInfo(ExifInfo exifInfo)
Deprecated.
Updates EXIF metadata.
|
void |
setIptcValues(IptcDataSetCollection value)
Deprecated.
Sets the IPTC metadata package associated with the file.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Deprecated.
Updates the XMP packet.
|
boolean |
updateExifInfo(ExifInfo exifInfo)
Deprecated.
Updates EXIF metadata.
|
void |
updateIptc(IptcCollection collection)
Deprecated.
|
void |
updateIptc(IptcDataSet dataSet)
Deprecated.
|
fromFile, fromFile, fromStream, getByteOrder, getHeight, getWidth
close, dispose, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public JpegFormat(String fileName)
Initializes a new instance of the JpegFormat
class.
fileName
- A string that contains the full name of the file from which to create a JpegFormat
instance.public JpegFormat(InputStream input)
Initializes a new instance of the JpegFormat
class.
input
- A stream that contains the data for this JpegFormat
.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 ExifInfo getExifValues()
Gets the EXIF metadata package associated with the file.
getExifValues
in interface IExif
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
public final IptcDataSetCollection getIptcValues()
Gets the IPTC metadata package associated with the file.
getIptcValues
in interface IIptc
public final void setIptcValues(IptcDataSetCollection value)
Sets the IPTC metadata package associated with the file.
setIptcValues
in interface IIptc
value
- The IPTC metadata package associated with the file.@Deprecated public final boolean hasIptc()
Gets a value indicating whether JPEG contains IPTC IIM metadata.
public final boolean hasBarCodes()
Gets a value indicating whether image has barcodes.
hasBarCodes
in interface IBarCodeDetector
true
if file has bar codes; otherwise, false
.public final boolean hasImageResourceBlocks()
Gets a value indicating whether file contains Photoshop Image Resource Blocks.
hasImageResourceBlocks
in interface IImageResourceBlocks
true
if file has image resource blocks; otherwise, false
.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 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 boolean setExifInfo(ExifInfo exifInfo)
Updates EXIF metadata.
exifInfo
- An EXIF metadata package.
true
if the EXIF package is successfully replaced; otherwise, false.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 MakerNotesBase getMakernotes()
Gets the makernotes from EXIF.
MakerNotesBase
.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.
@Deprecated public final void updateIptc(IptcCollection collection)
Updates IPTC metadata.
updateIptc
in interface IIptc
collection
- IPTC collection.@Deprecated public final void updateIptc(IptcDataSet dataSet)
Updates specific IPTC dataset.
updateIptc
in interface IIptc
dataSet
- IPTC dataset.@Deprecated public final void removeIptc()
Removes IPTC metadata from image.
removeIptc
in interface IIptc
public final String[] getBarCodeTypes()
Extracts the types of the barcodes presented in the image.
getBarCodeTypes
in interface IBarCodeDetector
public final ImageResourceMetadata getImageResourceBlocks()
Gets the image resource blocks.
getImageResourceBlocks
in interface IImageResourceBlocks
ImageResourceMetadata
.public final void removePhotoshopData()
Removes Photoshop image resource blocks.
public void cleanMetadata()
Removes writable metadata properties associated with the file.
cleanMetadata
in class ImageFormat
Copyright © 2020. All rights reserved.