GfxPolyline
- draw a polyline

Low-level graphics
(AmiBroker 50)


SYNTAX GfxPolyline( x1, y1, x2, y2, ... )
RETURNS NOTHING
FUNCTION Draws a set of line segments connecting the points specified by arguments (x1,y1), (x2,y2), ... The lines are drawn from the first point through subsequent points using the current pen. Unlike the GfxLineTo function, the GfxPolyline function neither uses nor updates the current position.

This function takes variable number of arguments and accepts up to 12 points (24 arguments = 12 co-ordinate pairs). The number of arguments must be even as each pair represents (x,y) co-ordinates of the point.

Parameters:

  • x1 - x co-ordinate of first point
  • y1 - y co-ordinate of first point
  • x2 - x co-ordinate of second point
  • y2 - y co-ordinate of second point
  • ...
  • x12 - x co-ordinate of 12th point
  • y12 - y co-ordinate of 12th point

NOTE: This is LOW-LEVEL graphic function. To learn more about low-level graphic functions please read TUTORIAL: Using low-level graphics.

EXAMPLE GfxSelectPen( colorGreen, 2 );
GfxPolyline(250,200,200,200,250,0,200,50);
SEE ALSO GfxPolygon() function , GfxSelectPen() function

References:

The GfxPolyline function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.