# ColorConvertParams Class

> Holds parameters to be passed to a color convert method.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/ColorConvertParams
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class ColorConvertParams : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

Holds parameters to be passed to a color convert method. This includes the actions to take in case of a match. Each object is compared against the selection criteria for each of the actions, in order, until a matching action is found.

**Referenced by:** [`Document`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Document.md), [`Page`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Page.md)

**Uses types:** [`ColorConvertActions`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/ColorConvertActions.md), [`ColorProfile`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/ColorProfile.md), [`RenderIntent`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/RenderIntent.md)

## Constructors

### ColorConvertParams

```csharp
Datalogics.PDFL.ColorConvertParams.ColorConvertParams(System.Collections.Generic.IList< ColorConvertActions > convActions)
```

*constructor*

**Parameters**

- `convActions` ([`System.Collections.Generic.IList< ColorConvertActions >`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/ColorConvertActions.md)): The list of ColorConvertActions to apply during color conversion.

Constructs a ColorConvertParams with the specified color conversion actions.

Initializes AllowLossyCompression to false, all default color profiles to null, and all render intents to Perceptual.

## Properties

### AllowLossyCompression

```csharp
bool Datalogics.PDFL.ColorConvertParams.AllowLossyCompression { get; set; }
```

If true, DCT or JPX encoding will be used resulting in a smaller PDF. If false, FlateDecoding will be used instead.

### ColorConvActions

```csharp
System.Collections.Generic.IList<ColorConvertActions> Datalogics.PDFL.ColorConvertParams.ColorConvActions { get; set; }
```

The list of ColorConvertActions to apply during color conversion.

Each object in the document is compared against the selection criteria for each action, in order, until a matching action is found.

### DefaultCMYK

```csharp
ColorProfile Datalogics.PDFL.ColorConvertParams.DefaultCMYK { get; set; }
```

The default CMYK ColorProfile used when a document object has no embedded CMYK profile.

Initially set to the null color profile.

### DefaultGray

```csharp
ColorProfile Datalogics.PDFL.ColorConvertParams.DefaultGray { get; set; }
```

The default Gray ColorProfile used when a document object has no embedded Gray profile.

Initially set to the null color profile.

### DefaultRGB

```csharp
ColorProfile Datalogics.PDFL.ColorConvertParams.DefaultRGB { get; set; }
```

The default RGB ColorProfile used when a document object has no embedded RGB profile.

Initially set to the null color profile.

### IntentCMYK

```csharp
RenderIntent Datalogics.PDFL.ColorConvertParams.IntentCMYK { get; set; }
```

The RenderIntent used for CMYK color conversion.

Initially set to Perceptual.

### IntentGray

```csharp
RenderIntent Datalogics.PDFL.ColorConvertParams.IntentGray { get; set; }
```

The RenderIntent used for Gray color conversion.

Initially set to Perceptual.

### IntentRGB

```csharp
RenderIntent Datalogics.PDFL.ColorConvertParams.IntentRGB { get; set; }
```

The RenderIntent used for RGB color conversion.

Initially set to Perceptual.

## Methods

### Dispose

```csharp
void Datalogics.PDFL.ColorConvertParams.Dispose()
```

**Returns:** `void`
