# OfficeTiffCompression

TIFF compression methods supported by the dependency-free encoder.

Enum 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeTiffCodec.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeTiffCodec.cs#L9)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

TIFF compression methods supported by the dependency-free encoder.

## Inheritance

- Enum
- OfficeTiffCompression

## Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 7

- Property [OfficeImageOptimizationRequest.TiffCompression](/api/core/officeimo-drawing-officeimageoptimizationrequest/#property-tiffcompression)
- Field [OfficeTiffCompression.CcittGroup4](/api/core/officeimo-drawing-officetiffcompression/#field-ccittgroup4)
- Field [OfficeTiffCompression.Deflate](/api/core/officeimo-drawing-officetiffcompression/#field-deflate)
- Field [OfficeTiffCompression.Lzw](/api/core/officeimo-drawing-officetiffcompression/#field-lzw)
- Field [OfficeTiffCompression.None](/api/core/officeimo-drawing-officetiffcompression/#field-none)
- Field [OfficeTiffCompression.PackBits](/api/core/officeimo-drawing-officetiffcompression/#field-packbits)
- Property [OfficeTiffEncodeOptions.Compression](/api/core/officeimo-drawing-officetiffencodeoptions/#property-compression)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const OfficeTiffCompression None` [#](#field-none)

[OfficeTiffCodec.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeTiffCodec.cs#L11)

Writes uncompressed RGBA strips.

Value: `1`

`public const OfficeTiffCompression CcittGroup4` [#](#field-ccittgroup4)

[OfficeTiffCodec.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeTiffCodec.cs#L14)

Uses CCITT T.6 Group 4 compression for opaque, exactly black/white pixels. Other samples are rejected without thresholding.

Value: `4`

`public const OfficeTiffCompression Lzw` [#](#field-lzw)

[OfficeTiffCodec.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeTiffCodec.cs#L17)

Uses the TIFF 6.0 LZW dictionary compression method.

Value: `5`

`public const OfficeTiffCompression PackBits` [#](#field-packbits)

[OfficeTiffCodec.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeTiffCodec.cs#L20)

Uses the TIFF PackBits run-length encoding.

Value: `32773`

`public const OfficeTiffCompression Deflate` [#](#field-deflate)

[OfficeTiffCodec.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Raster/OfficeTiffCodec.cs#L23)

Uses the Adobe Deflate compression method.

Value: `8`

<!-- PowerForge markdown artifact sha256:13CB6BD02290B96AF4DA4EC14FE9BC750FED609C5DF63737D640266E0997E246 -->
