# ColorValueConverter Class

> This class contains methods used to convert sets of values from one Colorspace to another.

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

```csharp
class ColorValueConverter : SystemIDisposable
```

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

**Inherits from:** `SystemIDisposable`

## Description

This class contains methods used to convert sets of values from one Colorspace to another.

**Uses types:** [`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

### ColorValueConverter

```csharp
Datalogics.PDFL.ColorValueConverter.ColorValueConverter()
```

*constructor*

This class contains methods used to convert sets of values from one Colorspace to another.

## Methods

### ConvertValues

```csharp
System.Byte[] Datalogics.PDFL.ColorValueConverter.ConvertValues(ColorProfile sourceColorProfile, ColorProfile destinationColorProfile, RenderIntent intent, uint numberOfInputValueSets, System.Byte[] inputValueSets)
```

**Parameters**

- `sourceColorProfile` ([`ColorProfile`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/ColorProfile.md)): The Color Profile to be used for input values.
- `destinationColorProfile` ([`ColorProfile`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/ColorProfile.md)): The Color Profile to be used for output values.
- `intent` ([`RenderIntent`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/RenderIntent.md)): The Render Intent used during the conversion.
- `numberOfInputValueSets` (`uint`): The number of sets of input values to be converted.
- `inputValueSets` (`System.Byte[]`): The input values to be converted which are divided into sets, e.g., would represent 2 sets of CMYK colors: [255 140 0 0] and [120 0 60 0] and numberOfInputValueSets should be 2.

**Returns:** `System.Byte[]`

A list of converted color values in the destination colorspace.

Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.

### ConvertValues

```csharp
System.Byte[] Datalogics.PDFL.ColorValueConverter.ConvertValues(ColorProfile sourceColorProfile, string destinationColorProfilePath, RenderIntent intent, uint numberOfInputValueSets, System.Byte[] inputValueSets)
```

**Parameters**

- `sourceColorProfile` ([`ColorProfile`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/ColorProfile.md)): The Color Profile to be used for input values.
- `destinationColorProfilePath` (`string`): The Color Profile to be used for output values, loaded from a path on disk.
- `intent` ([`RenderIntent`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/RenderIntent.md)): The Render Intent used during the conversion.
- `numberOfInputValueSets` (`uint`): The number of sets of input values to be converted.
- `inputValueSets` (`System.Byte[]`): The input values to be converted which are divided into sets, e.g., would represent 2 sets of CMYK colors: [255 140 0 0] and [120 0 60 0] and numberOfInputValueSets should be 2.

**Returns:** `System.Byte[]`

A list of converted color values in the destination colorspace.

Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.

### ConvertValues

```csharp
System.Byte[] Datalogics.PDFL.ColorValueConverter.ConvertValues(string sourceColorProfilePath, ColorProfile destinationColorProfile, RenderIntent intent, uint numberOfInputValueSets, System.Byte[] inputValueSets)
```

**Parameters**

- `sourceColorProfilePath` (`string`): The Color Profile to be used for input values, loaded from a path on disk.
- `destinationColorProfile` ([`ColorProfile`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/ColorProfile.md)): The Color Profile to be used for output values.
- `intent` ([`RenderIntent`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/RenderIntent.md)): The Render Intent used during the conversion.
- `numberOfInputValueSets` (`uint`): The number of sets of input values to be converted.
- `inputValueSets` (`System.Byte[]`): The input values to be converted which are divided into sets, e.g., would represent 2 sets of CMYK colors: [255 140 0 0] and [120 0 60 0] and numberOfInputValueSets should be 2.

**Returns:** `System.Byte[]`

A list of converted color values in the destination colorspace.

Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.

### ConvertValues

```csharp
System.Byte[] Datalogics.PDFL.ColorValueConverter.ConvertValues(string sourceColorProfilePath, string destinationColorProfilePath, RenderIntent intent, uint numberOfInputValueSets, System.Byte[] inputValueSets)
```

**Parameters**

- `sourceColorProfilePath` (`string`): The Color Profile to be used for input values, loaded from a path on disk.
- `destinationColorProfilePath` (`string`): The Color Profile to be used for output values, loaded from a path on disk.
- `intent` ([`RenderIntent`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/RenderIntent.md)): The Render Intent used during the conversion.
- `numberOfInputValueSets` (`uint`): The number of sets of input values to be converted.
- `inputValueSets` (`System.Byte[]`): The input values to be converted which are divided into sets, e.g. < 255 140 0 0 120 0 60 0 > would represent 2 sets of CMYK colors: [255 140 0 0] and [120 0 60 0] and numberOfInputValueSets should be 2.

**Returns:** `System.Byte[]`

A list of converted color values in the destination colorspace.

Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.

### Dispose

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

**Returns:** `void`
