public final class ImageCodecInfo extends Object
The ImageCodecInfo class provides the necessary storage members and methods to retrieve
all pertinent information about the installed image encoders and decoders (called codecs). Not inheritable.
| Constructor and Description |
|---|
ImageCodecInfo()
Initializes a new instance of the
ImageCodecInfo class. |
ImageCodecInfo(UUID clsid,
String codecName,
String filenameExtension,
String formatDescription,
UUID formatID,
String mimeType,
int version) |
| Modifier and Type | Method and Description |
|---|---|
UUID |
getClsid()
Gets a
UUID structure that contains a GUID that identifies a specific codec. |
String |
getCodecName()
Gets or sets a string that contains the name of the codec.
|
String |
getFilenameExtension()
Gets or sets string that contains the file name extension(s) used in the codec.
|
String |
getFormatDescription()
Gets or sets a string that describes the codec's file format.
|
UUID |
getFormatID()
Gets a
UUID structure that contains a GUID that identifies the codec's format. |
static ImageCodecInfo[] |
getImageDecoders()
Returns an array of
ImageCodecInfo objects that contain information about the image decoders built into GDI+. |
static ImageCodecInfo[] |
getImageEncoders()
Returns an array of
ImageCodecInfo objects that contain information about the image encoders built into GDI+. |
String |
getMimeType()
Gets or sets a string that contains the codec's Multipurpose Internet Mail Extensions (MIME) type.
|
byte[][] |
getSignatureMasks()
Gets or sets a two dimensional array of bytes that can be used as a filter.
|
byte[][] |
getSignaturePatterns()
Gets or sets a two dimensional array of bytes that represents the signature of the codec.
|
int |
getVersion()
Gets or sets the version number of the codec.
|
void |
setClsid(UUID value)
Sets a
UUID structure that contains a GUID that identifies a specific codec. |
void |
setCodecName(String value)
Gets or sets a string that contains the name of the codec.
|
void |
setFilenameExtension(String value)
Gets or sets string that contains the file name extension(s) used in the codec.
|
void |
setFormatDescription(String value)
Gets or sets a string that describes the codec's file format.
|
void |
setFormatID(UUID value)
Sets a
UUID structure that contains a GUID that identifies the codec's format. |
void |
setMimeType(String value)
Gets or sets a string that contains the codec's Multipurpose Internet Mail Extensions (MIME) type.
|
void |
setSignatureMasks(byte[][] value)
Gets or sets a two dimensional array of bytes that can be used as a filter.
|
void |
setSignaturePatterns(byte[][] value)
Gets or sets a two dimensional array of bytes that represents the signature of the codec.
|
void |
setVersion(int value)
Gets or sets the version number of the codec.
|
public ImageCodecInfo()
Initializes a new instance of the ImageCodecInfo class.
public UUID getClsid()
Gets a UUID structure that contains a GUID that identifies a specific codec.
UUIDpublic void setClsid(UUID value)
Sets a UUID structure that contains a GUID that identifies a specific codec.
value - a UUIDpublic UUID getFormatID()
Gets a UUID structure that contains a GUID that identifies the codec's format.
UUIDpublic void setFormatID(UUID value)
Sets a UUID structure that contains a GUID that identifies the codec's format.
value - a UUIDpublic String getCodecName()
Gets or sets a string that contains the name of the codec.
public void setCodecName(String value)
Gets or sets a string that contains the name of the codec.
public String getFormatDescription()
Gets or sets a string that describes the codec's file format.
public void setFormatDescription(String value)
Gets or sets a string that describes the codec's file format.
public String getFilenameExtension()
Gets or sets string that contains the file name extension(s) used in the codec. The extensions are separated by semicolons.
public void setFilenameExtension(String value)
Gets or sets string that contains the file name extension(s) used in the codec. The extensions are separated by semicolons.
public String getMimeType()
Gets or sets a string that contains the codec's Multipurpose Internet Mail Extensions (MIME) type.
public void setMimeType(String value)
Gets or sets a string that contains the codec's Multipurpose Internet Mail Extensions (MIME) type.
public int getVersion()
Gets or sets the version number of the codec.
public void setVersion(int value)
Gets or sets the version number of the codec.
public byte[][] getSignaturePatterns()
Gets or sets a two dimensional array of bytes that represents the signature of the codec.
public void setSignaturePatterns(byte[][] value)
Gets or sets a two dimensional array of bytes that represents the signature of the codec.
public byte[][] getSignatureMasks()
Gets or sets a two dimensional array of bytes that can be used as a filter.
public void setSignatureMasks(byte[][] value)
Gets or sets a two dimensional array of bytes that can be used as a filter.
public static ImageCodecInfo[] getImageDecoders()
Returns an array of ImageCodecInfo objects that contain information about the image decoders built into GDI+.
ImageCodecInfo objects.
Each ImageCodecInfo object in the array contains information about one of the built-in image decoders.public static ImageCodecInfo[] getImageEncoders()
Returns an array of ImageCodecInfo objects that contain information about the image encoders built into GDI+.
ImageCodecInfo objects.
Each ImageCodecInfo object in the array contains information about one of the built-in image encoders.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.