User's Manual

MediaScript Objects and Methods 53
Example
var image = new Media();
image.load(name @ "logobg.tga");
image.arc(X @ 185, Y @ 121, Rx @ 175, Ry @ 111, StartAngle @ -120,
EndAngle @ 60, Width @ 2, Smooth @ true, WarpAngles @ true);
image.save(type @ "jpeg");
blur()
Applies a simple blur filter on the image. For each pixel, all the pixels within the given
radius are averaged and the result put in the destination image. This function fully
supports CMYK.
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().
Syntax
blur(
Radius @ <value 0..30>
);
Parameters
Radius - specifies the radius (in pixels) of the effect.
NOTE: The “radius” is actually square, so a radius of two results in averaging over a 5x5 square
centered on the given pixel.