public final class GifFormat extends ImageFormat implements IXmp
Represents GIF (Graphics Interchange Format) format.
filePath, stream
Constructor and Description |
---|
GifFormat(InputStream input)
Initializes a new instance of the
GifFormat class. |
GifFormat(String fileName)
Initializes a new instance of the
GifFormat class. |
Modifier and Type | Method and Description |
---|---|
int |
getType()
Gets document type.
|
String |
getVersion()
Gets GIF version.
|
XmpPacketWrapper |
getXmpData()
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Returns all XMP properties presented in
GifFormat . |
XmpEditableCollection |
getXmpValues()
Gets
XmpEditableCollection . |
boolean |
hasXmp()
Gets
true if file contains XMP metadata. |
boolean |
isSupportedXmp()
Gets true if file allows to read/write XMP data.
|
void |
removeXmpData()
Removes all existing XMP data.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Updates XMP packet.
|
cleanMetadata, fromFile, fromFile, fromStream, getByteOrder, getHeight, getWidth
dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public GifFormat(String fileName)
Initializes a new instance of the GifFormat
class.
fileName
- Absolute path to the file.public GifFormat(InputStream input)
Initializes a new instance of the GifFormat
class.
input
- File stream.public int getType()
Gets document type.
Value: Document type.getType
in class FormatBase
public final boolean isSupportedXmp()
Gets true if file allows to read/write XMP data.
Value:true
if this GIF is supported XMP; otherwise, false
.public final String getVersion()
Gets GIF version. XMP is supported starting from 89a version.
Value: The version.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 GifFormat
.
getXmpProperties
in interface IXmp
XmpProperties
if XMP data is presented; otherwise null.public final boolean setXmpData(XmpPacketWrapper package_)
Updates XMP packet.
setXmpData
in interface IXmp
package
- XMP packet wrapper.com.aspose.ms.System.ArgumentNullException
- XMP wrapper could not be null.public final void removeXmpData()
Removes all existing XMP data.
removeXmpData
in interface IXmp
Copyright © 2017. All rights reserved.