ImageFormat

ImageFormat class

Specifies the file format of the image.

Methods

NameDescription
equals(obj)Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFor
getName()Get the string name of this ImageFormat instance
getBmp() (static)Gets the bitmap (BMP) image format.
getEmf() (static)Gets the enhanced metafile (EMF) image format.
getExif() (static)Gets the Exchangeable Image File (Exif) format.
getGif() (static)Gets the Graphics Interchange Format (GIF) image format.
getIcon() (static)Gets the Windows icon image format.
getImageFormatFromSuffixName(name) (static)Get the image format according to suffix name
getJpeg() (static)Gets the Joint Photographic Experts Group (JPEG) image format.
getMemoryBmp() (static)Gets a memory bitmap image format.
getPng() (static)Gets the W3C Portable Network Graphics (PNG) image format.
getTiff() (static)Gets the Tagged Image File Format (TIFF) image format.
getWmf() (static)Gets the Windows metafile (WMF) 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: boolean — boolean 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: String — String The string name of this ImageFormat instance

getBmp() (static)

Gets the bitmap (BMP) image format.

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

getEmf() (static)

Gets the enhanced metafile (EMF) image format.

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

getExif() (static)

Gets the Exchangeable Image File (Exif) format.

Returns: ImageFormat — ImageFormat An ImageFormat object that indicates the Exif format.

getGif() (static)

Gets the Graphics Interchange Format (GIF) image format.

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

getIcon() (static)

Gets the Windows icon image format.

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

getImageFormatFromSuffixName(name) (static)

Get the image format according to suffix name

ParameterTypeDescription
nameStringsuffix name

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

getJpeg() (static)

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

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

getMemoryBmp() (static)

Gets a memory bitmap image format.

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

getPng() (static)

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

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

getTiff() (static)

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

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

getWmf() (static)

Gets the Windows metafile (WMF) image format.

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