**Inheritance:**
java.lang.Object
```
public class Compression
```

Contains the image compression settings.
## Constructors

| Constructor | Description |
| --- | --- |
| [Compression()](#Compression--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getType()](#getType--) | Gets the type. |
| [setType(int value)](#setType-int-) | Sets the type. |
| [getJpeg()](#getJpeg--) | Gets the JPEG options. |
| [setJpeg(JpegOptions value)](#setJpeg-com.aspose.imaging.imageoptions.JpegOptions-) | Sets the JPEG options. |
| [getJpeg2000()](#getJpeg2000--) | Gets the JPEG 2000 options. |
| [setJpeg2000(Jpeg2000Options value)](#setJpeg2000-com.aspose.imaging.imageoptions.Jpeg2000Options-) | Sets the JPEG 2000 options. |
### Compression() {#Compression--}
```
public Compression()
```


### getType() {#getType--}
```
public final int getType()
```


Gets the type.

**Returns:**
int
### setType(int value) {#setType-int-}
```
public final void setType(int value)
```


Sets the type.

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

### getJpeg() {#getJpeg--}
```
public final JpegOptions getJpeg()
```


Gets the JPEG options.

**Returns:**
[JpegOptions](../../com.aspose.imaging.imageoptions/jpegoptions)
### setJpeg(JpegOptions value) {#setJpeg-com.aspose.imaging.imageoptions.JpegOptions-}
```
public final void setJpeg(JpegOptions value)
```


Sets the JPEG options.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [JpegOptions](../../com.aspose.imaging.imageoptions/jpegoptions) |  |

### getJpeg2000() {#getJpeg2000--}
```
public final Jpeg2000Options getJpeg2000()
```


Gets the JPEG 2000 options.

**Returns:**
[Jpeg2000Options](../../com.aspose.imaging.imageoptions/jpeg2000options)
### setJpeg2000(Jpeg2000Options value) {#setJpeg2000-com.aspose.imaging.imageoptions.Jpeg2000Options-}
```
public final void setJpeg2000(Jpeg2000Options value)
```


Sets the JPEG 2000 options.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Jpeg2000Options](../../com.aspose.imaging.imageoptions/jpeg2000options) |  |

