
MediaScript Objects and Methods 157
•
•
•
•
Example
The following code creates an IccProfile object using the “USWebCoatedSWOP.icc” profile.
#link "IccProfile.dll"
var prof = new IccProfile("USWebCoatedSWOP.icc");
var image = new Media();
image.load(name @ "fileWithEmbeddedProfile.jpg");
var prof2 = new IccProfile(image);
getName()
Returns the friendly display name of the profile.
Parameters
This function takes no parameters.
Example
The following code creates an IccProfile object using the “USWebCoatedSWOP.icc” profile
and gets the friendly name.
#link "IccProfile.dll"
var prof = new IccProfile("USWebCoatedSWOP.icc");
var name = prof.getName();
getPath()
Returns the path of the profile file.
Parameters
This method has no parameters.
Example
The following code creates an IccProfile object using the “USWebCoatedSWOP.icc” profile
and gets the profile path.
#link "IccProfile.dll"
var prof = new IccProfile("USWebCoatedSWOP.icc");
var name = prof.getPath();
getClass()
Returns the profile class.
Parameters
This method has no parameters.