g:image.rotation Property

Gets or sets the degree of rotation applied to the g:image element.

This property is read/write.

Syntax

propVal = g:image.rotation(fRotation)

  
g:image.rotation(fRotation)

   = propVal 

Parameters

fRotation [in]
fRotation [out]

Sets or retrieves the degree of rotation. Positive values indicate clockwise rotation and negative values indicate counter-clockwise rotation.

ValueMeaning
0

Default. No rotation applied. The target element is not modified.

 

Remarks

The rotation amount can be specified in the gadget HTML and script files.

Examples

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

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

The following example demonstrates how to rotate the g:background element in the gadget HTML file.

<g:image src="..\aerologo.png" rotation="90.0"/>

See Also

g:image
Reference
background
text

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK

Community Additions

Show: