A SERVICE OF

logo

MediaRich Color Management 185
Profile Management methods
With the exception of the load and save methods of the Media object, the profile
management methods are contained in the IccProfile link object.
Media Object
The load() method of the Media object automatically loads any embedded source
profiles for supported file formats.
The save method can optionally embed the color profile associated with an image along
with the image data for supported file formats. By default, embedded profiles are always
saved for CMYK images, but not for RGB images. This default behavior is controlled by the
ColorManager.DefaultEmbedProfile property in the global.properties file.
IccProfile Object
The IccProfile object constructor will construct an IccProfile object given either a Media
object that has an embedded profile or a path to a profile on disk. An IccProfile object may
be used as a source or destination profile for all color management methods that take
profiles as arguments, including:
getPath()
getName()
getClass()
getColospace()
getConnectionspace()
list()
getPath()
The getPath method returns the path to the profile on disk or the empty string if the object
was constructed from an image.
getName()
The getName method returns the profile name.
getClass()
The getClass method returns the profiles class. The class generally describes the type of the
device for which the profile is intended.
getColospace()
The getColorspace method returns the colorspace of the device characterized by the
profile. This is the colorspace of the source image if the profile is used as the source, and
the colorspace of the destination image if the profile is used as the destination.
getConnectionspace()
The getConnectionspace method returns the common colorspace used to construct
transforms using this profile.