Helma logo
helma.org » Home > Stories > Image.getWidth()

Image.getWidth()

Returns the width of an image measured in pixels.

Syntax
imageObject.getWidth()

Example
var img = new Image("http://helma.org/images/hop.gif");
res.write('<img src="/images/hop.gif">');

Helma Object Publisher logo

var width = img.getWidth();
res.write(width);
174


... comment


Page last modified on 2002-07-16 16:32 by tobi