---
title: "ImageFormat"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/imageformat/"
product: "Aspose.PDF for Java API Reference"
description: "This enum represents image formats."
---

**Inheritance:**
java.lang.Object, java.lang.Enum < ImageFormat > com.aspose.pdf.ImageFormat, java.lang.Enum < ImageFormat >, com.aspose.pdf.ImageFormat

**All Implemented Interfaces:**
Serializable, Comparable < ImageFormat >

```
public enum ImageFormat extends Enum < ImageFormat >
```

This enum represents image formats.

## Fields

| Field | Description |
| --- | --- |
| [Bmp](#Bmp) | BMP format. |
| [Dicom](#Dicom) | DICOM format. |
| [Emf](#Emf) | EMF format. |
| [Exif](#Exif) | Exif format. |
| [Gif](#Gif) | GIF format. |
| [Jpeg](#Jpeg) | JPEG format. |
| [MemoryBmp](#MemoryBmp) | MemoryBmp format. |
| [Png](#Png) | PNG format. |
| [Tiff](#Tiff) | TIFF format. |
| [Wmf](#Wmf) | Wmf format. |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### Bmp {#Bmp}
```
public static final ImageFormat Bmp
```

BMP format.

### Dicom {#Dicom}
```
public static final ImageFormat Dicom
```

DICOM format.

### Emf {#Emf}
```
public static final ImageFormat Emf
```

EMF format.

### Exif {#Exif}
```
public static final ImageFormat Exif
```

Exif format.

### Gif {#Gif}
```
public static final ImageFormat Gif
```

GIF format.

### Jpeg {#Jpeg}
```
public static final ImageFormat Jpeg
```

JPEG format.

### MemoryBmp {#MemoryBmp}
```
public static final ImageFormat MemoryBmp
```

MemoryBmp format.

### Png {#Png}
```
public static final ImageFormat Png
```

PNG format.

### Tiff {#Tiff}
```
public static final ImageFormat Tiff
```

TIFF format.

### Wmf {#Wmf}
```
public static final ImageFormat Wmf
```

Wmf format.

### getByValue {#getByValue-int-}
```
public static ImageFormat getByValue(int value)
```



**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  |  |

### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#values--}
```
public static ImageFormat [] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.

**Returns:**
an array containing the constants of this enum type, in the order they are declared
