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

The jfif segment.
## Constructors

| Constructor | Description |
| --- | --- |
| [JFIFData()](#JFIFData--) | Initializes a new instance of the [JFIFData](../../com.aspose.imaging.fileformats.jpeg/jfifdata) class. |
## Methods

| Method | Description |
| --- | --- |
| [getDensityUnits()](#getDensityUnits--) | Gets the density units. |
| [setDensityUnits(byte value)](#setDensityUnits-byte-) | Sets the density units. |
| [getThumbnail()](#getThumbnail--) | Gets the thumbnail. |
| [setThumbnail(RasterImage value)](#setThumbnail-com.aspose.imaging.RasterImage-) | Sets the thumbnail. |
| [getVersion()](#getVersion--) | Gets the version. |
| [setVersion(short value)](#setVersion-short-) | Sets the version. |
| [getXDensity()](#getXDensity--) | Gets the x density. |
| [setXDensity(short value)](#setXDensity-short-) | Sets the x density. |
| [getYDensity()](#getYDensity--) | Gets the y density. |
| [setYDensity(short value)](#setYDensity-short-) | Sets the y density. |
### JFIFData() {#JFIFData--}
```
public JFIFData()
```


Initializes a new instance of the [JFIFData](../../com.aspose.imaging.fileformats.jpeg/jfifdata) class.

### getDensityUnits() {#getDensityUnits--}
```
public byte getDensityUnits()
```


Gets the density units.

**Returns:**
byte - the density units.
### setDensityUnits(byte value) {#setDensityUnits-byte-}
```
public void setDensityUnits(byte value)
```


Sets the density units.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | byte | the density units. |

### getThumbnail() {#getThumbnail--}
```
public RasterImage getThumbnail()
```


Gets the thumbnail.

**Returns:**
[RasterImage](../../com.aspose.imaging/rasterimage) - the thumbnail.
### setThumbnail(RasterImage value) {#setThumbnail-com.aspose.imaging.RasterImage-}
```
public void setThumbnail(RasterImage value)
```


Sets the thumbnail.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [RasterImage](../../com.aspose.imaging/rasterimage) | the thumbnail. |

### getVersion() {#getVersion--}
```
public short getVersion()
```


Gets the version.

**Returns:**
short - the version.
### setVersion(short value) {#setVersion-short-}
```
public void setVersion(short value)
```


Sets the version.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | short | the version. |

### getXDensity() {#getXDensity--}
```
public short getXDensity()
```


Gets the x density.

**Returns:**
short - the x density.
### setXDensity(short value) {#setXDensity-short-}
```
public void setXDensity(short value)
```


Sets the x density.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | short | the x density. |

### getYDensity() {#getYDensity--}
```
public short getYDensity()
```


Gets the y density.

**Returns:**
short - the y density.
### setYDensity(short value) {#setYDensity-short-}
```
public void setYDensity(short value)
```


Sets the y density.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | short | the y density. |

