%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
ViewToPixel Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : ViewToPixel Method
pt
The point in view coordinates to be converted.
Converts and returns the given point from view coordinates to pixel coordinates relative to the upper left corner of the drawing area.

Syntax

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

Parameters

pt
The point in view coordinates to be converted.

Return Value

A two sized array that contains the x and y values of the converted point in pixels relative to the upper left corner of the drawing area.

Remarks

You can create a point object using newpoint.

See Also