SetBlur()

Syntax:

object.SetBlur( Horizontal, Vertical, Quality )

Parameters:

Horizontal – the width in pixels of the horizontal blur. Horizontal must be a positive integer. This parameter is required and the recommended maximum is 20.

Vertical – the height in pixels of the vertical blur. Vertical must be a positive integer. This parameter is required and the recommended maximum is 20.

Quality – a percentage, showing the level of transparency for the flare. Quality must be a positive integer between 0 and 100. This parameter is optional and the default is 3. The recommended maximum is 20.

Note:
The Quality setting can significantly increase the redraw time, particularly for large objects. If you want to apply a extensive blur effect we recommend you consider applying it using the effects tab and then rendering the object to a graphic.

Remarks:

This function allows you to create the Blur effect for a specified object. There are two methods of using this function:

(i)  Specify an object name – in this method, the Blur effect will be set on the Normal (i.e. default) Object State.

(ii) Specify a new object created with the GetAppearance function – in this method, the Blur effect is set for the Object State of the object specified in the GetAppearance function.

Note:
The Blur effect can be removed using the RemoveBlur() function or in the Effects tab of the object’s Properties dialog.

 

image\Script_Button.jpgExamples