| Syntax | $drawLine{x1}{y1}{x2}{y2} |
| Documentation | Draws a line between the specified points:
$drawLine{x1}{y1}{x2}{y2}
Parameters: (x1, y1), the first point of the line to be drawn.
(x2, y2), the last point of the line to be drawn.
Note: the template using this function must have the content type 'image/gif' or 'image/jpeg'. |
| Examples |
| Example:
$createImage{200}{200}
$setDrawColor{black}
$fillRectangle{0}{0}{199}{199}
$setDrawColor{white}
$drawLine{1}{1}{1}{199}
$drawLine{1}{1}{199}{1}
Result:
in the image with a width of 200/200; a black rectangle with the size 199/199; at
the left and top edge a 1 pixel sized white line appears |
| Group | Graphic |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 4 |
| Maximum parameters | 4 |