%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
PixelToView Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : PixelToView Method
pt
A two sized array containing the x and y values of the point in pixels relative to the upper left corner of the drawing area.
Converts and returns the given point from pixel coordinates to view coordinates.

Syntax

JScript 
public function PixelToView( 
   pt : Object
) : Object;

Parameters

pt
A two sized array containing the x and y values 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 view coordinates.

Remarks

You can create a point object using newpoint.

See Also