ImageFormat

ImageFormat class

Specifies the file format of the image.

Methods

NameDescription
getBmpGets the bitmap (BMP) image format.
getEmfGets the enhanced metafile (EMF) image format.
getExifGets the Exchangeable Image File (Exif) format.
getGifGets the Graphics Interchange Format (GIF) image format.
getIconGets the Windows icon image format.
getJpegGets the Joint Photographic Experts Group (JPEG) image format.
getMemoryBmpGets a memory bitmap image format.
getPngGets the W3C Portable Network Graphics (PNG) image format.
getTiffGets the Tagged Image File Format (TIFF) image format.
getWmfGets the Windows metafile (WMF) image format.
equalsReturns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFor
getNameGet the string name of this ImageFormat instance
getImageFormatFromSuffixNameGet the image format according to suffix name

getBmp()

Gets the bitmap (BMP) image format.

Returns: An ImageFormat object that indicates the bitmap image format.

getEmf()

Gets the enhanced metafile (EMF) image format.

Returns: An ImageFormat object that indicates the enhanced metafile image format.

getExif()

Gets the Exchangeable Image File (Exif) format.

Returns: An ImageFormat object that indicates the Exif format.

getGif()

Gets the Graphics Interchange Format (GIF) image format.

Returns: An ImageFormat object that indicates the GIF image format.

getIcon()

Gets the Windows icon image format.

Returns: An ImageFormat object that indicates the Windows icon image format.

getJpeg()

Gets the Joint Photographic Experts Group (JPEG) image format.

Returns: An ImageFormat object that indicates the JPEG image format.

getMemoryBmp()

Gets a memory bitmap image format.

Returns: An ImageFormat object that indicates the memory bitmap image format.

getPng()

Gets the W3C Portable Network Graphics (PNG) image format.

Returns: An ImageFormat object that indicates the PNG image format.

getTiff()

Gets the Tagged Image File Format (TIFF) image format.

Returns: An ImageFormat object that indicates the TIFF image format.

getWmf()

Gets the Windows metafile (WMF) image format.

Returns: An ImageFormat object that indicates the Windows metafile image format.

equals(obj)

Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFormat object.

ParameterTypeDescription
objObjectThe object to test.

Returns: true if o is an ImageFormat object that is equivalent to this ImageFormat object; otherwise, false.

getName()

Get the string name of this ImageFormat instance

Returns: The string name of this ImageFormat instance

getImageFormatFromSuffixName(name)

Get the image format according to suffix name

ParameterTypeDescription
nameStringsuffix name

Returns: >An ImageFormat object according to the suffix name.