%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
PixelToWorld Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : PixelToWorld Method
ptX
The x value of the point in pixels relative to the upper left corner of the drawing area.
ptY
The y value of the point in pixels relative to the upper left corner of the drawing area.
Converts and returns the given point from pixel (relative to the upper left corner of the drawing area) coordinates to world coordinates.

Syntax

JScript 
public function PixelToWorld( 
   ptX : int,
   ptY : int
) : Object;

Parameters

ptX
The x value of the point in pixels relative to the upper left corner of the drawing area.
ptY
The y value of the point in pixels relative to the upper left corner of the drawing area.

Return Value

A 3 sized array object that contains the x, y and z values of the given point in world coordinates.

See Also