public final class PsdFormat extends ImageFormat implements IXmp, IIptc, IImageResourceBlocks
Represents an Adobe Photoshop drawing.
Constructor and Description |
---|
PsdFormat(InputStream input)
Initializes a new instance of the
PsdFormat class. |
PsdFormat(String fileName)
Initializes a new instance of the
PsdFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes writable metadata properties associated with the file.
|
DublinCoreMetadata |
getDublinCore()
Retrieves the Dublin Core metadata.
|
ExifInfo |
getExifInfo()
Returns EXIF data.
|
ImageResourceMetadata |
getImageResourceBlocks()
Gets the image resource blocks.
|
IptcCollection |
getIptc()
Deprecated.
|
IptcDataSetCollection |
getIptcValues()
Gets the IPTC metadata package associated with the file.
|
PsdLayer[] |
getLayers()
Gets the Photoshop layers.
|
PsdMetadata |
getPsdInfo()
Gets native Photoshop metadata.
|
int |
getType()
Gets the type of the loaded file.
|
XmpPacketWrapper |
getXmpData()
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Returns all XMP properties presented in a specific format.
|
XmpEditableCollection |
getXmpValues()
Gets a collection containing the XMP metadata properties.
|
boolean |
hasImageResourceBlocks()
Gets
true if file contains Photoshop Image Resource Blocks. |
boolean |
hasIptc()
Deprecated.
|
boolean |
hasXmp()
Gets a value indicating whether the file contains XMP metadata.
|
void |
removeIptc()
Deprecated.
|
void |
removeXmpData()
Removes the XMP metadata.
|
void |
setIptcValues(IptcDataSetCollection value)
Sets the IPTC metadata package associated with the file.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Updates the XMP packet.
|
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 PsdFormat(String fileName)
Initializes a new instance of the PsdFormat
class.
fileName
- A string that contains the full name of the file from which to create a PsdFormat
instance.public PsdFormat(InputStream input)
Initializes a new instance of the PsdFormat
class.
input
- A stream that contains the data for this PsdFormat
.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 PsdLayer[] getLayers()
Gets the Photoshop layers.
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 the PSD file contains IPTC IIM metadata.
public final boolean hasImageResourceBlocks()
Gets true
if file contains Photoshop Image Resource Blocks.
hasImageResourceBlocks
in interface IImageResourceBlocks
true
if file has image resource blocks; otherwise, false
.public final ExifInfo getExifInfo()
Returns EXIF data.
ExifInfo
if image contains EXIF data; 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.public void cleanMetadata()
Removes writable metadata properties associated with the file.
cleanMetadata
in class ImageFormat
public final PsdMetadata getPsdInfo()
Gets native Photoshop metadata.
PsdMetadata
.@Deprecated public final IptcCollection getIptc()
Gets the IPTC collection.
@Deprecated public final void updateIptc(IptcCollection collection)
Updates IPTC metadata.
updateIptc
in interface IIptc
collection
- An IPTC collection.ArgumentNullException
- The collection could not be null.@Deprecated public final void updateIptc(IptcDataSet dataSet)
Updates a specific IPTC dataset.
updateIptc
in interface IIptc
dataSet
- An IPTC dataset.ArgumentNullException
- The DataSet could not be null.@Deprecated public final void removeIptc()
Removes IPTC metadata from the image.
removeIptc
in interface IIptc
public final ImageResourceMetadata getImageResourceBlocks()
Gets the image resource blocks.
getImageResourceBlocks
in interface IImageResourceBlocks
ImageResourceMetadata
.Copyright © 2019. All rights reserved.