
**Inheritance:**
java.lang.Object
```
public final class ImageFormat
```

Specifies the file format of the image. Cannot be extended.
## Constructors

| Constructor | Description |
| --- | --- |
| [ImageFormat(String guid)](#ImageFormat-java.lang.String-) | Initializes a new instance of the ImageFormat class by using the specified Guid string. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object o)](#equals-java.lang.Object-) | Returns a value that indicates whether the specified object is an ImageFormat object that is equivalent to this ImageFormat object. |
| [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. |
| [getGuid()](#getGuid--) | Gets a Guid string that represents this ImageFormat object. |
| [getIcon()](#getIcon--) | Gets the Windows icon image format. |
| [getJpeg()](#getJpeg--) | Gets the Joint Photographic Experts Group (JPEG) image format. |
| [getMemoryBmp()](#getMemoryBmp--) | Gets the format of a bitmap in memory. |
| [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. |
| [hashCode()](#hashCode--) | Returns a hash code value that represents this object. |
| [isBitmapType()](#isBitmapType--) | Determines whether an image format is a bitmap type. |
| [isMetafileType()](#isMetafileType--) | Determines whether an image format is a metafile type. |
| [isUnknownType()](#isUnknownType--) | Determines whether an image format is unknown type. |
| [toString()](#toString--) | Converts this ImageFormat object to a human-readable string. |
### ImageFormat(String guid) {#ImageFormat-java.lang.String-}
```
public ImageFormat(String guid)
```


Initializes a new instance of the ImageFormat class by using the specified Guid string.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| guid | java.lang.String | The Guid string that specifies a particular image format. |

### equals(Object o) {#equals-java.lang.Object-}
```
public boolean equals(Object o)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| o | java.lang.Object | The object to test. |

**Returns:**
boolean - true if o is an ImageFormat object that is equivalent to this ImageFormat object; otherwise, false.
### getBmp() {#getBmp--}
```
public static ImageFormat getBmp()
```


Gets the bitmap (BMP) image format.

**Returns:**
[ImageFormat](../../com.aspose.tasks/imageformat) - An ImageFormat object that indicates the bitmap image format.
### getEmf() {#getEmf--}
```
public static ImageFormat getEmf()
```


Gets the enhanced metafile (EMF) image format.

**Returns:**
[ImageFormat](../../com.aspose.tasks/imageformat) - An ImageFormat object that indicates the enhanced metafile image format.
### getExif() {#getExif--}
```
public static ImageFormat getExif()
```


Gets the Exchangeable Image File (Exif) format.

**Returns:**
[ImageFormat](../../com.aspose.tasks/imageformat) - An ImageFormat object that indicates the Exif format.
### getGif() {#getGif--}
```
public static ImageFormat getGif()
```


Gets the Graphics Interchange Format (GIF) image format.

**Returns:**
[ImageFormat](../../com.aspose.tasks/imageformat) - An ImageFormat object that indicates the GIF image format.
### getGuid() {#getGuid--}
```
public String getGuid()
```


Gets a Guid string that represents this ImageFormat object.

**Returns:**
java.lang.String - A Guid string that represents this ImageFormat object.
### getIcon() {#getIcon--}
```
public static ImageFormat getIcon()
```


Gets the Windows icon image format.

**Returns:**
[ImageFormat](../../com.aspose.tasks/imageformat) - An ImageFormat object that indicates the Windows icon image format.
### getJpeg() {#getJpeg--}
```
public static ImageFormat getJpeg()
```


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

**Returns:**
[ImageFormat](../../com.aspose.tasks/imageformat) - An ImageFormat object that indicates the JPEG image format.
### getMemoryBmp() {#getMemoryBmp--}
```
public static ImageFormat getMemoryBmp()
```


Gets the format of a bitmap in memory.

**Returns:**
[ImageFormat](../../com.aspose.tasks/imageformat) - An ImageFormat object that indicates the format of a bitmap in memory.
### getPng() {#getPng--}
```
public static ImageFormat getPng()
```


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

**Returns:**
[ImageFormat](../../com.aspose.tasks/imageformat) - An ImageFormat object that indicates the PNG image format.
### getTiff() {#getTiff--}
```
public static ImageFormat getTiff()
```


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

**Returns:**
[ImageFormat](../../com.aspose.tasks/imageformat) - An ImageFormat object that indicates the TIFF image format.
### getWmf() {#getWmf--}
```
public static ImageFormat getWmf()
```


Gets the Windows metafile (WMF) image format.

**Returns:**
[ImageFormat](../../com.aspose.tasks/imageformat) - An ImageFormat object that indicates the Windows metafile image format.
### hashCode() {#hashCode--}
```
public int hashCode()
```


Returns a hash code value that represents this object.

**Returns:**
int - A hash code that represents this object.
### isBitmapType() {#isBitmapType--}
```
public boolean isBitmapType()
```


Determines whether an image format is a bitmap type.

**Returns:**
boolean - true if an image format is a bitmap type; otherwise, false.
### isMetafileType() {#isMetafileType--}
```
public boolean isMetafileType()
```


Determines whether an image format is a metafile type.

**Returns:**
boolean - true if an image format is a metafile type; otherwise, false.
### isUnknownType() {#isUnknownType--}
```
public boolean isUnknownType()
```


Determines whether an image format is unknown type.

**Returns:**
boolean - true if an image format is unknown type; otherwise, false.
### toString() {#toString--}
```
public String toString()
```


Converts this ImageFormat object to a human-readable string.

**Returns:**
java.lang.String - A string that represents this ImageFormat object.
