@Deprecated public final class PngFormat extends ImageFormat implements IXmp
Represents a PNG image.
Constructor and Description |
---|
PngFormat(InputStream input)
Deprecated.
Initializes a new instance of the
PngFormat class. |
PngFormat(String fileName)
Deprecated.
Initializes a new instance of the
PngFormat class. |
Modifier and Type | Method and Description |
---|---|
DublinCoreMetadata |
getDublinCore()
Deprecated.
Retrieves the Dublin Core metadata.
|
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 |
hasXmp()
Deprecated.
Gets a value indicating whether the file contains XMP metadata.
|
void |
removeXmpData()
Deprecated.
Removes the XMP metadata.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Deprecated.
Updates the XMP packet.
|
cleanMetadata, fromFile, fromFile, fromStream, getByteOrder, getHeight, getWidth
close, dispose, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public PngFormat(String fileName)
Initializes a new instance of the PngFormat
class.
fileName
- A string that contains the full name of the file from which to create a PngFormat
instance.public PngFormat(InputStream input)
Initializes a new instance of the PngFormat
class.
input
- A stream that contains the data for this PngFormat
.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 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 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.Copyright © 2020. All rights reserved.