
## ImageFormat class

Specifies the file format of the image.

## Methods

| Name | Description |
| --- | --- |
| [equals(obj)](#equals) | Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFor |
| [getName()](#getname) | Get the string name of this ImageFormat instance |
| [getBmp()](#getbmp) *(static)* | Gets the bitmap (BMP) image format. |
| [getEmf()](#getemf) *(static)* | Gets the enhanced metafile (EMF) image format. |
| [getExif()](#getexif) *(static)* | Gets the Exchangeable Image File (Exif) format. |
| [getGif()](#getgif) *(static)* | Gets the Graphics Interchange Format (GIF) image format. |
| [getIcon()](#geticon) *(static)* | Gets the Windows icon image format. |
| [getImageFormatFromSuffixName(name)](#getimageformatfromsuffixname) *(static)* | Get the image format according to suffix name |
| [getJpeg()](#getjpeg) *(static)* | Gets the Joint Photographic Experts Group (JPEG) image format. |
| [getMemoryBmp()](#getmemorybmp) *(static)* | Gets a memory bitmap image format. |
| [getPng()](#getpng) *(static)* | Gets the W3C Portable Network Graphics (PNG) image format. |
| [getTiff()](#gettiff) *(static)* | Gets the Tagged Image File Format (TIFF) image format. |
| [getWmf()](#getwmf) *(static)* | Gets the Windows metafile (WMF) image format. |

### equals(obj) {#equals}

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

| Parameter | Type | Description |
| --- | --- | --- |
| obj | Object | The object to test. |

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

### getName() {#getname}

Get the string name of this ImageFormat instance

**Returns:** String — `String` The string name of this ImageFormat instance

### getBmp() (static) {#getbmp}

Gets the bitmap (BMP) image format.

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

### getEmf() (static) {#getemf}

Gets the enhanced metafile (EMF) image format.

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

### getExif() (static) {#getexif}

Gets the Exchangeable Image File (Exif) format.

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

### getGif() (static) {#getgif}

Gets the Graphics Interchange Format (GIF) image format.

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

### getIcon() (static) {#geticon}

Gets the Windows icon image format.

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

### getImageFormatFromSuffixName(name) (static) {#getimageformatfromsuffixname}

Get the image format according to suffix name

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | suffix name |

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

### getJpeg() (static) {#getjpeg}

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

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

### getMemoryBmp() (static) {#getmemorybmp}

Gets a memory bitmap image format.

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

### getPng() (static) {#getpng}

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

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

### getTiff() (static) {#gettiff}

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

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

### getWmf() (static) {#getwmf}

Gets the Windows metafile (WMF) image format.

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