Share via


g:image.blur Property

Gets or sets the level of blur applied to the g:image element.

This property is read/write.

Syntax

propVal = g:image.blur(intBlur)

  
g:image.blur(intBlur)

   = propVal 

Parameters

  • intBlur [in]

  • intBlur [out]
    Sets or retrieves the blur radius (or boundary). The value ranges from 0 to 100.

    Value Meaning
    0

    Default. No blur effect applied. The target element is not modified.

    100

    Full blur effect applied.

     

Remarks

The blur effect can be specified in the gadget HTML and script files.

The opacity of the g:image element must be set to a value of at least 1 for the blur effect to be visible.

Examples

The following example demonstrates how to add a blur effect to the g:image element from a gadget script file.

\\ imgBackground is the value of the 'id' attribute for the g:background element.
var imgGlow = imgBackground.addImageObject(file, intX, intY);
imgGlow.blur = 10;

The following example demonstrates how to add a blur effect to the g:image element in the gadget HTML file.

<g:image src="..\aerologo.png" blur="20"/>

Requirements

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
IDL Sidebar.idl
DLL Sidebar.Exe version 1.00 or later

See Also

g:image

Reference

background

text

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK