Methods

equals(obj) → boolean

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

Parameter

Name Type Optional Description

obj

Object

 

The object to test.

Returns

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

getName() → String

Get the string name of this ImageFormat instance

Returns

String The string name of this ImageFormat instance

static

getBmp() → ImageFormat

Gets the bitmap (BMP) image format.

Returns

ImageFormat An ImageFormat object that indicates the bitmap image format.

static

getEmf() → ImageFormat

Gets the enhanced metafile (EMF) image format.

Returns

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

static

getExif() → ImageFormat

Gets the Exchangeable Image File (Exif) format.

Returns

ImageFormat An ImageFormat object that indicates the Exif format.

static

getGif() → ImageFormat

Gets the Graphics Interchange Format (GIF) image format.

Returns

ImageFormat An ImageFormat object that indicates the GIF image format.

static

getIcon() → ImageFormat

Gets the Windows icon image format.

Returns

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

static

getImageFormatFromSuffixName(name) → ImageFormat

Get the image format according to suffix name

Parameter

Name Type Optional Description

name

String

 

suffix name

Returns

ImageFormat >An ImageFormat object according to the suffix name.

static

getJpeg() → ImageFormat

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

Returns

ImageFormat An ImageFormat object that indicates the JPEG image format.

static

getMemoryBmp() → ImageFormat

Gets a memory bitmap image format.

Returns

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

static

getPng() → ImageFormat

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

Returns

ImageFormat An ImageFormat object that indicates the PNG image format.

static

getTiff() → ImageFormat

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

Returns

ImageFormat An ImageFormat object that indicates the TIFF image format.

static

getWmf() → ImageFormat

Gets the Windows metafile (WMF) image format.

Returns

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