
## ImageFormat class

Specifies the file format of the image.

## Methods

| Name | Description |
| --- | --- |
| [getBmp](#getbmp) | Gets the bitmap (BMP) image format. |
| [getEmf](#getemf) | Gets the enhanced metafile (EMF) image format. |
| [getExif](#getexif) | Gets the Exchangeable Image File (Exif) format. |
| [getGif](#getgif) | Gets the Graphics Interchange Format (GIF) image format. |
| [getIcon](#geticon) | Gets the Windows icon image format. |
| [getJpeg](#getjpeg) | Gets the Joint Photographic Experts Group (JPEG) image format. |
| [getMemoryBmp](#getmemorybmp) | Gets a memory bitmap image format. |
| [getPng](#getpng) | Gets the W3C Portable Network Graphics (PNG) image format. |
| [getTiff](#gettiff) | Gets the Tagged Image File Format (TIFF) image format. |
| [getWmf](#getwmf) | Gets the Windows metafile (WMF) image format. |
| [equals](#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 |
| [getImageFormatFromSuffixName](#getimageformatfromsuffixname) | Get the image format according to suffix name |

### getBmp() {#getbmp}

Gets the bitmap (BMP) image format.

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

### getEmf() {#getemf}

Gets the enhanced metafile (EMF) image format.

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

### getExif() {#getexif}

Gets the Exchangeable Image File (Exif) format.

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

### getGif() {#getgif}

Gets the Graphics Interchange Format (GIF) image format.

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

### getIcon() {#geticon}

Gets the Windows icon image format.

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

### getJpeg() {#getjpeg}

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

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

### getMemoryBmp() {#getmemorybmp}

Gets a memory bitmap image format.

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

### getPng() {#getpng}

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

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

### getTiff() {#gettiff}

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

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

### getWmf() {#getwmf}

Gets the Windows metafile (WMF) image format.

**Returns:** An ImageFormat object that indicates the Windows metafile 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:** 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:** The string name of this ImageFormat instance

### getImageFormatFromSuffixName(name) {#getimageformatfromsuffixname}

Get the image format according to suffix name

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

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