---
title: "CompressionType"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf.devices/compressiontype/"
product: "Aspose.PDF for Java API Reference"
description: "Used to specify the parameter value passed to a Tiff image device."
---

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

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

```
public enum CompressionType extends Enum < CompressionType >
```

Used to specify the parameter value passed to a Tiff image device.

## Fields

| Field | Description |
| --- | --- |
| [CCITT3](#CCITT3) | Specifies the CCITT3 compression scheme. |
| [CCITT4](#CCITT4) | Specifies the CCITT4 compression scheme. |
| [LZW](#LZW) | Specifies the LZW compression scheme. |
| [None](#None) | Specifies no compression. |
| [RLE](#RLE) | Specifies the RLE compression scheme. |

## Methods

| Method | Description |
| --- | --- |
| [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. |

### CCITT3 {#CCITT3}
```
public static final CompressionType CCITT3
```

Specifies the CCITT3 compression scheme.

### CCITT4 {#CCITT4}
```
public static final CompressionType CCITT4
```

Specifies the CCITT4 compression scheme.

### LZW {#LZW}
```
public static final CompressionType LZW
```

Specifies the LZW compression scheme.

### None {#None}
```
public static final CompressionType None
```

Specifies no compression.

### RLE {#RLE}
```
public static final CompressionType RLE
```

Specifies the RLE compression scheme.

### 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 CompressionType [] 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
