User's Manual

158 Chapter 3
Example
The following code creates an IccProfile object using the “USWebCoatedSWOP.icc
profile and tests if it is a printer profile.
#link "IccProfile.dll"
var prof = new IccProfile("USWebCoatedSWOP.icc");
var isPrinter = prof.getClass() & IccProfile.PRINTER;
getColorspace()
Returns the profile colorpace.
Parameters
This function takes no parameters.
Example:
The following code creates an IccProfile object using the “USWebCoatedSWOP.icc
profile and tests if it is a CMYK profile.
#link "IccProfile.dll"
var prof = new IccProfile("USWebCoatedSWOP.icc");
var isCmyk = prof.getColorspace() & IccProfle.CMYK;
getConnectionspace()
Returns the Profile connection space as the jseNumber.
Parameters
This function takes no parameters.
Example
The following code creates an IccProfile object using the “USWebCoatedSWOP.icc
profile and gets the connectionspace.
#link "IccProfile.dll"
var prof = new IccProfile("USWebCoatedSWOP.icc");
var connectionspace = prof.getConnectionspace();
close()
Closes profile file. Returns no value.
Parameters
This function takes no parameters.