
MediaScript Objects and Methods 141
•
•
•
•
setSourceProfile()
Sets the embedded profile for an image to the specified source profile. This profile replaces
any existing embedded profile for the image.
NOTE: The colorspace of the specified source profile must match the colorspace of the image.
Syntax
setSourceProfile(
sourceProfile @ <"filename.icc">
);
Parameters
SourceProfile - specifies the profile to use as the images new embedded profile. For
more information about specifying profiles, see “colorCorrect()” on page 59.
For more information about color management please refer to Appendix B, “MediaRich
Color Management.”
sharpenSharpen()
Makes the edges in the image more pronounced.
NOTE: This function is “selection aware,” so that if a selection has been made, the system applies
it based on the current selection. For more information about making selections, see “selection()” on
page 129.
Syntax
sharpenSharpen();
Parameters
This function has no parameters.
Example
var image = new Media();
image.load(name @ "peppers.tga");
image.sharpenSharpen();
image.save(type @ "jpeg");