ColorConvertActions Class Documentation

class ColorConvertActions

Namespace:datalogics_interface

Detailed Description

Class that defines color conversion actions for an object described by certain attributes.

Referenced by

Constructor & Destructor Documentation

ColorConvertActions

ColorConvertActions()

Default constructor for the ColorConvertActions class. Sets default values to the members.

~ColorConvertActions

~ColorConvertActions()

Member Function Documentation

get_colorant_name

std::string get_colorant_name()

Returns:

std::string

For ink actions (which describe a single colorant, whether used in Separation or DeviceN, and which are not matched using the above matching fields) this describes the colorant of the ink.

get_convert_intent

RenderIntent get_convert_intent()

Returns:

RenderIntent

Gets / sets the intent that overrides the object's original render intent when performing color conversion. UseProfileIntent means that the intent of the object must not be overridden.

get_convert_profile

ColorProfile get_convert_profile()

Returns:

ColorProfile

Gets / sets the target ColorProfile for the conversion. If the output intent is embedded, this should be the output intent profile.

get_convert_profile_path

std::string get_convert_profile_path()

Returns:

std::string

Gets / sets the target ColorProfile for the conversion using the profile found at the path provided. If the output intent is embedded, this should be the output intent profile. NOTE: If specifying a path, ConvertProfile must be set to Null_ColorProfile.

get_embed_color_profile

bool get_embed_color_profile()

Returns:

bool

If true, embed the target profile. If false, the resulting color is Device, if possible.

get_intent_to_match

RenderIntent get_intent_to_match()

Returns:

RenderIntent

Gets / sets the rendering intent of the object. If this is UseProfileIntent this action applies to any intent.

get_is_ink_action

bool get_is_ink_action()

Returns:

bool

Marks this Action to be applied to inks.

get_must_match_all_attrs

ColorConvertObjAttrs get_must_match_all_attrs()

Returns:

ColorConvertObjAttrs

A bit field that gets / sets the attributes an element must match to be color converted. The element must match ALL these attributes to be color converted.

get_must_match_all_cs_attrs

ColorConvertSpaceType get_must_match_all_cs_attrs()

Returns:

ColorConvertSpaceType

A bit field that gets / sets the Color Space attributes an object must match to be color converted. The element must match ALL these Color Space attributes to be color converted.

get_must_match_any_attrs

ColorConvertObjAttrs get_must_match_any_attrs()

Returns:

ColorConvertObjAttrs

A bit field that gets / sets the attributes an element must match to be color converted. The element can match ONE OR MORE of these attributes to be color converted.

get_must_match_any_cs_attrs

ColorConvertSpaceType get_must_match_any_cs_attrs()

Returns:

ColorConvertSpaceType

A bit field that gets / sets the Color Space attributes an object must match to be color converted. The element can match ONE OR MORE Color Space attributes to be color converted.

get_preserve_black

bool get_preserve_black()

Returns:

bool

If true, perform a black-preserving transform when converting.

get_use_black_point_compensation

bool get_use_black_point_compensation()

Returns:

bool

If true, turn on black point compensation for color conversions.

set_colorant_name

void set_colorant_name(const std::string & name)

Parameters

name: const std::string &

the colorant name (used for ink actions that describe a single colorant).

Returns:

void

set_convert_intent

void set_convert_intent(RenderIntent intent)

Parameters

intent: RenderIntent

the render intent that overrides the object's original render intent during color conversion. UseProfileIntent leaves the original intent in place.

Returns:

void

set_convert_profile

void set_convert_profile(ColorProfile profile)

Parameters

profile: ColorProfile

the target ColorProfile for the conversion; if the output intent is embedded, this should be the output intent profile.

Returns:

void

set_convert_profile_path

void set_convert_profile_path(const std::string & path)

Parameters

path: const std::string &

the path to the target ColorProfile for the conversion. ConvertProfile must be set to Null_ColorProfile when using a path.

Returns:

void

set_embed_color_profile

void set_embed_color_profile(bool embed)

Parameters

embed: bool

true to embed the target profile; false to leave the resulting color as Device when possible.

Returns:

void

set_intent_to_match

void set_intent_to_match(RenderIntent intent)

Parameters

intent: RenderIntent

the rendering intent to match; UseProfileIntent matches any intent.

Returns:

void

set_is_ink_action

void set_is_ink_action(bool is_ink)

Parameters

is_ink: bool

true if this Action applies to inks, false otherwise.

Returns:

void

set_must_match_all_attrs

void set_must_match_all_attrs(ColorConvertObjAttrs attrs)

Parameters

attrs: ColorConvertObjAttrs

the bit field of attributes; an element must match ALL of these to be color converted.

Returns:

void

set_must_match_all_cs_attrs

void set_must_match_all_cs_attrs(ColorConvertSpaceType attrs)

Parameters

attrs: ColorConvertSpaceType

the bit field of color-space attributes; an object must match ALL of these to be color converted.

Returns:

void

set_must_match_any_attrs

void set_must_match_any_attrs(ColorConvertObjAttrs attrs)

Parameters

attrs: ColorConvertObjAttrs

the bit field of attributes; an element matching ANY of these is color converted.

Returns:

void

set_must_match_any_cs_attrs

void set_must_match_any_cs_attrs(ColorConvertSpaceType attrs)

Parameters

attrs: ColorConvertSpaceType

the bit field of color-space attributes; an object matching ANY of these is color converted.

Returns:

void

set_preserve_black

void set_preserve_black(bool preserve)

Parameters

preserve: bool

true to perform a black-preserving transform when converting, false otherwise.

Returns:

void

set_use_black_point_compensation

void set_use_black_point_compensation(bool use)

Parameters

use: bool

true to enable black point compensation for color conversions, false otherwise.

Returns:

void