ssCore.SysTools.getImageInfo

Get information about an image file.


Availability:

First available in version 3.5 build 314.


Input Parameters:

path - Path to the image file to read. This parameter supports monikers.


Output Parameters:

width - Width of the image in pixels.

height - Height of the image in pixels.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.SysTools.getImageInfo( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.SysTools.getImageInfo( paramsObject );


Notes:

None.


Examples:

var r = ssCore.SysTools.getImageInfo({path: "desktop://source.jpg"});
ssDebug.trace("Success: " + r.success + " Width: " + r.width + " Height: " r.height);