DrawLine

Syntax:

DrawLine( PositionFrom, PositionTo )

DrawLine ( FromX, FromY, ToX, ToY )

Parameters:

PositionFrom – An object with "x" and "y" members, containing the position of the point to start the line at. This parameter is required.

PositionTo – An object with "x" and "y" members, containing the position of the point to end the line at. This parameter is required.

Note:
This type of object is returned by many script functions, such as GetPosition() and GetMousePosition().

or

FromX – X coordinate of the line start point. This parameter is required.

FromY – Y coordinate of the line start point. This parameter is required.

ToX – X coordinate of the line end point. This parameter is required.

ToY – Y coordinate of the line end point. This parameter is required.

Note:
All positions are in untransformed page coordinates. To avoid making your calculations too complex we strongly advise using untransformed (i.e. not rotated or scaled) frames when using the drawing functions.

Remarks:

This function allows lines to be drawn into a frame object.

Note:
All lines and shapes added to any individual frame are created as part of a single contour (this is a single continuous line). Adding intersecting shapes will produce gaps in the shape. To draw multiple independent shapes, use multiple frame objects.

image\Script_Button.jpgExamples