ColorValueConverter Class Documentation

classColorValueConverter

Namespace:datalogics_interface

Detailed Description

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

Constructor & Destructor Documentation

ColorValueConverter

ColorValueConverter()

Default constructor.

Member Function Documentation

convert_values

std::vector< uint8_t >convert_values(ColorProfilesource_profile, ColorProfiledestination_profile, RenderIntentintent, uint32_tnum_input_sets, const std::vector< uint8_t > &input_values)

Parameters

source_profile: ColorProfile

The Color Profile to be used for input values.

destination_profile: ColorProfile

The Color Profile to be used for output values.

intent: RenderIntent

The Render Intent used during the conversion.

num_input_sets: uint32_t

The number of sets of input values to be converted.

input_values: const std::vector< uint8_t > &

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:

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.

convert_values

std::vector< uint8_t >convert_values(ColorProfilesource_profile, const std::string &destination_profile_path, RenderIntentintent, uint32_tnum_input_sets, const std::vector< uint8_t > &input_values)

Parameters

source_profile: ColorProfile

The Color Profile to be used for input values.

destination_profile_path: const std::string &

The Color Profile to be used for output values.

intent: RenderIntent

The Render Intent used during the conversion.

num_input_sets: uint32_t

The number of sets of input values to be converted.

input_values: const std::vector< uint8_t > &

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:

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.

convert_values

std::vector< uint8_t >convert_values(const std::string &source_profile_path, ColorProfiledestination_profile, RenderIntentintent, uint32_tnum_input_sets, const std::vector< uint8_t > &input_values)

Parameters

source_profile_path: const std::string &

The Color Profile to be used for input values.

destination_profile: ColorProfile

The Color Profile to be used for output values.

intent: RenderIntent

The Render Intent used during the conversion.

num_input_sets: uint32_t

The number of sets of input values to be converted.

input_values: const std::vector< uint8_t > &

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:

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.

convert_values

std::vector< uint8_t >convert_values(const std::string &source_profile_path, const std::string &destination_profile_path, RenderIntentintent, uint32_tnum_input_sets, const std::vector< uint8_t > &input_values)

Parameters

source_profile_path: const std::string &

The Color Profile to be used for input values.

destination_profile_path: const std::string &

The Color Profile to be used for output values.

intent: RenderIntent

The Render Intent used during the conversion.

num_input_sets: uint32_t

The number of sets of input values to be converted.

input_values: const std::vector< uint8_t > &

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:

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.