Справочник Пользователя для Shayton Equilibrium Kitchen Utensil 2003

Скачать
Страница из 194
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);
g e t N a m e ( )
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();
g e t P a t h ( )
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();
g e t C l a s s ( )
Returns the profile class.
Parameters 
This method has no parameters.