g:image.height Property

Gets or sets the height of the g:image element.

This property is read/write.

Syntax

propVal = g:image.height(intHeight)

  
g:image.height(intHeight)

   = propVal 

Parameters

intHeight [in]
intHeight [out]

Sets or retrieves the height, in pixels, to scale the target element.

Remarks

Caution  Other than g:background, avoid images that render to the absolute edges of a gadget. In high-DPI, rounding errors can cause a magenta fringe around the border of the gadget.

Examples

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

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

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: