pixellateMosaic() - Media Method

The pixellateMosaic() method pixellates the image, with pixel size determined by the Radius parameter.

Note:  This function is “selection aware”—if a selection is made, the system applies the function based on the current selection. For more information about making selections, see selection() - Media Method.

Syntax

pixellateMosaic(

[Size <2..64>]

);

Parameters

Size - determines the resulting pixel size. The default is 8.

Example

var image = new Media();

image.load(name @ "peppers.tga");

image.pixellateMosaic(Radius @ 10);

image.save(type @ "jpeg");