public final class PngFormat extends ImageFormat implements IXmp
Represents PNG format.
filePath, stream
Constructor and Description |
---|
PngFormat(InputStream input)
Initializes a new instance of the
PngFormat class. |
PngFormat(String fileName)
Initializes a new instance of the
PngFormat class. |
Modifier and Type | Method and Description |
---|---|
int |
getType()
Gets document type.
|
XmpPacketWrapper |
getXmpData()
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Returns all XMP properties presented in
PngFormat . |
XmpEditableCollection |
getXmpValues()
Gets
XmpEditableCollection . |
boolean |
hasXmp()
Gets
true if file contains XMP metadata. |
void |
removeXmpData()
Removes all XMP data.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Updates XMP packages.
|
cleanMetadata, fromFile, fromFile, fromStream, getByteOrder, getHeight, getWidth
dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public PngFormat(String fileName)
Initializes a new instance of the PngFormat
class.
fileName
- Absolute path to the file.public PngFormat(InputStream input)
Initializes a new instance of the PngFormat
class.
input
- File stream.public int getType()
Gets document type.
Value: Document type.getType
in class FormatBase
public final boolean hasXmp()
Gets true
if file contains XMP metadata.
true
if file has XMP; otherwise, false
.public final XmpEditableCollection getXmpValues()
Gets XmpEditableCollection
. Provides access for all XMP properties in edit mode.
getXmpValues
in interface IXmp
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 PngFormat
.
getXmpProperties
in interface IXmp
XmpProperties
if XMP data is presented; otherwise null.public final boolean setXmpData(XmpPacketWrapper package_)
Updates XMP packages.
setXmpData
in interface IXmp
package
- XMP packet wrapper.true
if the XMP is successfully updated; otherwise, false
.com.aspose.ms.System.ArgumentNullException
- Xmp packet could not be null.public final void removeXmpData()
Removes all XMP data.
removeXmpData
in interface IXmp
Copyright © 2017. All rights reserved.