%%PageItemTitle%%

VectorDraw Web Library

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

Syntax

JScript 
public function WorldToPixel( 
   worldPT : Object
) : Object;

Parameters

worldPT
The point in world 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.

See Also