---
title: "TiffSettings Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_TiffSettings.htm
product: "Graphics Mill"
---

# TiffSettings Class
 
Contains all the possible TIFF writing settings.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public sealed class TiffSettings : WriterSettings
```
 
## Remarks
  
The main TIFF writing settings is a compression type. To change compression type use [Compression](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_TiffSettings_Compression.htm.md) property. This property accepts members of the [CompressionType](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) enumeration.
 
Another setting which can be specified is alpha premultiplication which has meaning only when saving image with alpha channel. You can turn it on or off using [IsAlphaPremultiplied](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_TiffSettings_IsAlphaPremultiplied.htm.md) property. The default value of this property is `false` and content of the alpha channel is simply stored along with color channels of the image by default. The second way is to store image with "associated" alpha channel. This way implies that not only alpha channel itself will be written into the file, but also color channels of each pixel will be premultiplied with the corresponding alpha channel value.
 
You should use TIFF files with associated alpha if you have software which gain some benefit from them. For example, TIFF files with premultiplied alpha are correctly shown as partially transparent images in Adobe® Photoshop®, while images with unassociated alpha are shown as non transparent images with additional channel. But you should take into account that premultiplication is slow and introduces rounding errors. So you should not set this property to `true` without reason.
 
You can also provide meta-information. Use [AdobeResources](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_TiffSettings_AdobeResources.htm.md), [Exif](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_TiffSettings_Exif.htm.md) and [Iptc](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_TiffSettings_Iptc.htm.md) properties to specify corresponding metadata objects.
 
## Examples
  
```csharp
bitmap.Save(@"Images\Output\out.tif", 
    new TiffSettings(CompressionType.Jpeg));
```
 
## Inheritance Hierarchy
  
- System.Object
    - [Aurigma.GraphicsMill.Codecs.WriterSettings](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_WriterSettings.htm.md)
        - Aurigma.GraphicsMill.Codecs.TiffSettings
 
## Thread Safety
 Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [TiffSettings Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Codecs_TiffSettings.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)

### Manual

- [Supported File Formats](https://www.graphicsmill.com/docs/gm/supported-file-formats.htm.md)
