ImageCodecInfo

Inheritance: java.lang.Object

public final class ImageCodecInfo

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.

Constructors

ConstructorDescription
ImageCodecInfo()Initializes a new instance of the ImageCodecInfo class.
ImageCodecInfo(UUID clsid, String codecName, String filenameExtension, String formatDescription, UUID formatID, String mimeType, int version)

Methods

MethodDescription
getClsid()Gets a java.util.UUID structure that contains a GUID that identifies a specific codec.
setClsid(UUID value)Sets a java.util.UUID structure that contains a GUID that identifies a specific codec.
getFormatID()Gets a java.util.UUID structure that contains a GUID that identifies the codec’s format.
setFormatID(UUID value)Sets a java.util.UUID structure that contains a GUID that identifies the codec’s format.
getCodecName()Gets or sets a string that contains the name of the codec.
setCodecName(String value)Gets or sets a string that contains the name of the codec.
getFormatDescription()Gets or sets a string that describes the codec’s file format.
setFormatDescription(String value)Gets or sets a string that describes the codec’s file format.
getFilenameExtension()Gets or sets string that contains the file name extension(s) used in the codec.
setFilenameExtension(String value)Gets or sets string that contains the file name extension(s) used in the codec.
getMimeType()Gets or sets a string that contains the codec’s Multipurpose Internet Mail Extensions (MIME) type.
setMimeType(String value)Gets or sets a string that contains the codec’s Multipurpose Internet Mail Extensions (MIME) type.
getVersion()Gets or sets the version number of the codec.
setVersion(int value)Gets or sets the version number of the codec.
getSignaturePatterns()Gets or sets a two dimensional array of bytes that represents the signature of the codec.
setSignaturePatterns(byte[][] value)Gets or sets a two dimensional array of bytes that represents the signature of the codec.
getSignatureMasks()Gets or sets a two dimensional array of bytes that can be used as a filter.
setSignatureMasks(byte[][] value)Gets or sets a two dimensional array of bytes that can be used as a filter.
getImageDecoders()Returns an array of ImageCodecInfo objects that contain information about the image decoders built into GDI+.
getImageEncoders()Returns an array of ImageCodecInfo objects that contain information about the image encoders built into GDI+.

ImageCodecInfo()

public ImageCodecInfo()

Initializes a new instance of the ImageCodecInfo class.

ImageCodecInfo(UUID clsid, String codecName, String filenameExtension, String formatDescription, UUID formatID, String mimeType, int version)

public ImageCodecInfo(UUID clsid, String codecName, String filenameExtension, String formatDescription, UUID formatID, String mimeType, int version)

Parameters:

ParameterTypeDescription
clsidjava.util.UUID
codecNamejava.lang.String
filenameExtensionjava.lang.String
formatDescriptionjava.lang.String
formatIDjava.util.UUID
mimeTypejava.lang.String
versionint

getClsid()

public UUID getClsid()

Gets a java.util.UUID structure that contains a GUID that identifies a specific codec.

Returns: java.util.UUID - a java.util.UUID

setClsid(UUID value)

public void setClsid(UUID value)

Sets a java.util.UUID structure that contains a GUID that identifies a specific codec.

Parameters:

ParameterTypeDescription
valuejava.util.UUIDa java.util.UUID

getFormatID()

public UUID getFormatID()

Gets a java.util.UUID structure that contains a GUID that identifies the codec’s format.

Returns: java.util.UUID - a java.util.UUID

setFormatID(UUID value)

public void setFormatID(UUID value)

Sets a java.util.UUID structure that contains a GUID that identifies the codec’s format.

Parameters:

ParameterTypeDescription
valuejava.util.UUIDa java.util.UUID

getCodecName()

public String getCodecName()

Gets or sets a string that contains the name of the codec.

Returns: java.lang.String

setCodecName(String value)

public void setCodecName(String value)

Gets or sets a string that contains the name of the codec.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getFormatDescription()

public String getFormatDescription()

Gets or sets a string that describes the codec’s file format.

Returns: java.lang.String

setFormatDescription(String value)

public void setFormatDescription(String value)

Gets or sets a string that describes the codec’s file format.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getFilenameExtension()

public String getFilenameExtension()

Gets or sets string that contains the file name extension(s) used in the codec. The extensions are separated by semicolons.

Returns: java.lang.String

setFilenameExtension(String value)

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.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getMimeType()

public String getMimeType()

Gets or sets a string that contains the codec’s Multipurpose Internet Mail Extensions (MIME) type.

Returns: java.lang.String

setMimeType(String value)

public void setMimeType(String value)

Gets or sets a string that contains the codec’s Multipurpose Internet Mail Extensions (MIME) type.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getVersion()

public int getVersion()

Gets or sets the version number of the codec.

Returns: int

setVersion(int value)

public void setVersion(int value)

Gets or sets the version number of the codec.

Parameters:

ParameterTypeDescription
valueint

getSignaturePatterns()

public byte[][] getSignaturePatterns()

Gets or sets a two dimensional array of bytes that represents the signature of the codec.

Returns: byte[][]

setSignaturePatterns(byte[][] value)

public void setSignaturePatterns(byte[][] value)

Gets or sets a two dimensional array of bytes that represents the signature of the codec.

Parameters:

ParameterTypeDescription
valuebyte[][]

getSignatureMasks()

public byte[][] getSignatureMasks()

Gets or sets a two dimensional array of bytes that can be used as a filter.

Returns: byte[][]

setSignatureMasks(byte[][] value)

public void setSignatureMasks(byte[][] value)

Gets or sets a two dimensional array of bytes that can be used as a filter.

Parameters:

ParameterTypeDescription
valuebyte[][]

getImageDecoders()

public static ImageCodecInfo[] getImageDecoders()

Returns an array of ImageCodecInfo objects that contain information about the image decoders built into GDI+.

Returns: com.aspose.drawing.imaging.ImageCodecInfo[] - An array of ImageCodecInfo objects. Each ImageCodecInfo object in the array contains information about one of the built-in image decoders.

getImageEncoders()

public static ImageCodecInfo[] getImageEncoders()

Returns an array of ImageCodecInfo objects that contain information about the image encoders built into GDI+.

Returns: com.aspose.drawing.imaging.ImageCodecInfo[] - An array of ImageCodecInfo objects. Each ImageCodecInfo object in the array contains information about one of the built-in image encoders.