ColorValueConverter Class Documentation
class ColorValueConverterNamespace:datalogics_interface
Detailed Description
This class contains methods used to convert sets of values from one Colorspace to another.
Uses types
Constructor & Destructor Documentation
ColorValueConverter
ColorValueConverter()Default constructor.
Member Function Documentation
convert_values
std::vector< uint8_t > convert_values(ColorProfile source_profile, ColorProfile destination_profile, RenderIntent intent, uint32_t num_input_sets, const std::vector< uint8_t > & input_values)Parameters
source_profile: ColorProfileThe Color Profile to be used for input values.
destination_profile: ColorProfileThe Color Profile to be used for output values.
intent: RenderIntentThe Render Intent used during the conversion.
num_input_sets: uint32_tThe 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:
std::vector< uint8_t >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(ColorProfile source_profile, const std::string & destination_profile_path, RenderIntent intent, uint32_t num_input_sets, const std::vector< uint8_t > & input_values)Parameters
source_profile: ColorProfileThe Color Profile to be used for input values.
destination_profile_path: const std::string &The Color Profile to be used for output values.
intent: RenderIntentThe Render Intent used during the conversion.
num_input_sets: uint32_tThe 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:
std::vector< uint8_t >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, ColorProfile destination_profile, RenderIntent intent, uint32_t num_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: ColorProfileThe Color Profile to be used for output values.
intent: RenderIntentThe Render Intent used during the conversion.
num_input_sets: uint32_tThe 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:
std::vector< uint8_t >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, RenderIntent intent, uint32_t num_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: RenderIntentThe Render Intent used during the conversion.
num_input_sets: uint32_tThe 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:
std::vector< uint8_t >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.