@Deprecated public final class GifFormat extends ImageFormat implements IXmp
Represents a GIF (Graphics Interchange Format) image.
Constructor and Description |
---|
GifFormat(InputStream input)
Deprecated.
Initializes a new instance of the
GifFormat class. |
GifFormat(String fileName)
Deprecated.
Initializes a new instance of the
GifFormat 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.
|
String |
getVersion()
Deprecated.
Gets the GIF version.
|
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.
|
boolean |
isSupportedXmp()
Deprecated.
Gets a value indicating whether the XMP metadata is supported for this image.
|
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 GifFormat(String fileName)
Initializes a new instance of the GifFormat
class.
fileName
- A string that contains the full name of the file from which to create a GifFormat
instance.public GifFormat(InputStream input)
Initializes a new instance of the GifFormat
class.
input
- A stream that contains the data for this GifFormat
.public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public final boolean isSupportedXmp()
Gets a value indicating whether the XMP metadata is supported for this image.
true
if the XMP metadata is supported for this image; otherwise, false
.public final String getVersion()
Gets the GIF version. The XMP metadata is supported starting from version 89a.
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.