public final class Jp2Format extends ImageFormat implements IXmp
Represents JPEG2000 format.
filePath, stream
Constructor and Description |
---|
Jp2Format(InputStream input)
Initializes a new instance of the
Jp2Format class. |
Jp2Format(String fileName)
Initializes a new instance of the
Jp2Format class. |
Modifier and Type | Method and Description |
---|---|
String[] |
getComments()
Gets the comments.
|
int |
getType()
Gets document type.
|
XmpPacketWrapper |
getXmpData()
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Returns all XMP properties presented in
JpegFormat . |
XmpEditableCollection |
getXmpValues()
Gets
XmpEditableCollection . |
boolean |
hasXmp()
Gets a value indicating whether this instance has XMP.
|
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 Jp2Format(String fileName)
Initializes a new instance of the Jp2Format
class.
fileName
- Absolute path to the file.public Jp2Format(InputStream input)
Initializes a new instance of the Jp2Format
class.
input
- File stream.public int getType()
Gets document type.
Value: Document type.getType
in class FormatBase
public final boolean hasXmp()
Gets a value indicating whether this instance has XMP.
Value:true
if this instance has XMP; otherwise, false
.public final String[] getComments()
Gets the comments.
Value: Comments.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 JpegFormat
.
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
- Package could not be null.public final void removeXmpData()
Removes all XMP data.
removeXmpData
in interface IXmp
Copyright © 2017. All rights reserved.