# ColorValueConverter Class

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

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/ColorValueConverter
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class ColorValueConverter
```

**Namespace:** `com::datalogics::PDFL`

## Description

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

## Constructors

### ColorValueConverter

```java
com.datalogics.PDFL.ColorValueConverter.ColorValueConverter()
```

*constructor*

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

## Methods

### convertValues

```java
byte[] com.datalogics.PDFL.ColorValueConverter.convertValues(ColorProfile sourceColorProfile, ColorProfile destinationColorProfile, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets)
```

**Parameters**

- `sourceColorProfile` (`ColorProfile`): The Color Profile to be used for input values.
- `destinationColorProfile` (`ColorProfile`): The Color Profile to be used for output values.
- `intent` (`RenderIntent`): The Render Intent used during the conversion.
- `numberOfInputValueSets` (`long`): The number of sets of input values to be converted.
- `inputValueSets` (`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:** `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

```java
byte[] com.datalogics.PDFL.ColorValueConverter.convertValues(ColorProfile sourceColorProfile, String destinationColorProfilePath, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets)
```

**Parameters**

- `sourceColorProfile` (`ColorProfile`): 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`): The Render Intent used during the conversion.
- `numberOfInputValueSets` (`long`): The number of sets of input values to be converted.
- `inputValueSets` (`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:** `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

```java
byte[] com.datalogics.PDFL.ColorValueConverter.convertValues(String sourceColorProfilePath, ColorProfile destinationColorProfile, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets)
```

**Parameters**

- `sourceColorProfilePath` (`String`): The Color Profile to be used for input values, loaded from a path on disk.
- `destinationColorProfile` (`ColorProfile`): The Color Profile to be used for output values.
- `intent` (`RenderIntent`): The Render Intent used during the conversion.
- `numberOfInputValueSets` (`long`): The number of sets of input values to be converted.
- `inputValueSets` (`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:** `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

```java
byte[] com.datalogics.PDFL.ColorValueConverter.convertValues(String sourceColorProfilePath, String destinationColorProfilePath, RenderIntent intent, long numberOfInputValueSets, 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`): The Render Intent used during the conversion.
- `numberOfInputValueSets` (`long`): The number of sets of input values to be converted.
- `inputValueSets` (`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:** `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.

### delete

```java
synchronized void com.datalogics.PDFL.ColorValueConverter.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.ColorValueConverter.delete()
```

**Returns:** `synchronized void`

### finalize

```java
void com.datalogics.PDFL.ColorValueConverter.finalize()
```

*protected*

**Returns:** `void`
