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

包含图像压缩设置。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [Compression()](#Compression--) |  |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getType()](#getType--) | 获取类型。 |
| [setType(int value)](#setType-int-) | 设置类型。 |
| [getJpeg()](#getJpeg--) | 获取 JPEG 选项。 |
| [setJpeg(JpegOptions value)](#setJpeg-com.aspose.imaging.imageoptions.JpegOptions-) | 设置 JPEG 选项。 |
| [getJpeg2000()](#getJpeg2000--) | 获取 JPEG 2000 选项。 |
| [setJpeg2000(Jpeg2000Options value)](#setJpeg2000-com.aspose.imaging.imageoptions.Jpeg2000Options-) | 设置 JPEG 2000 选项。 |
### Compression() {#Compression--}
```
public Compression()
```


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


获取类型。

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


设置类型。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int |  |

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


获取 JPEG 选项。

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


设置 JPEG 选项。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [JpegOptions](../../com.aspose.imaging.imageoptions/jpegoptions) |  |

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


获取 JPEG 2000 选项。

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


设置 JPEG 2000 选项。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [Jpeg2000Options](../../com.aspose.imaging.imageoptions/jpeg2000options) |  |

