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 |
---|---|
DublinCoreMetadata |
getDublinCore()
Gets Dublin Core metadata.
|
int |
getType()
Gets document type.
|
String |
getVersion()
Gets the GIF version.
|
XmpPacketWrapper |
getXmpData()
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Returns all XMP properties presented in
GifFormat . |
XmpEditableCollection |
getXmpValues()
Gets
XmpEditableCollection . |
boolean |
hasXmp()
Gets a value indicating whether 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
close, 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.
getType
in class FormatBase
public final boolean isSupportedXmp()
Gets true if file allows to read/write XMP data.
true
if this GIF is supported XMP; otherwise, false
.public final String getVersion()
Gets the GIF version. XMP is supported starting from version 89a.
public final boolean hasXmp()
Gets a value indicating whether file contains XMP metadata.
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.ArgumentNullException
- XMP wrapper could not be null.public final void removeXmpData()
Removes all existing XMP data.
removeXmpData
in interface IXmp
public final DublinCoreMetadata getDublinCore()
Gets Dublin Core metadata.
getDublinCore
in interface IDublinCore
DublinCoreMetadata
if Dublin Core metadata is presented; otherwise null.
Copyright © 2018. All rights reserved.