ImageDrawLines()
Draws a sequence of connected lines defined by arrays of x and y coordinates.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageDrawLines( image=any, xcoords=array, ycoords=array, isPolygon=boolean, filled=boolean );
Returns: void
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
xcoords
array,
required
|
edit
An array of x coordinates. |
|
ycoords
array,
required
|
edit
An array of y coordinates. |
|
isPolygon
boolean,
optional
|
edit
Specify whether the lines form a polygon:
|
|
filled
boolean,
optional
|
edit
Specify whether the polygon is filled:
|
Examples
editimg=imageNew("",200,200,"RGB","4a69bd");
imageDrawLines(img,[10,50,100,50],[100,10,100,152],"yes","no");
cfimage(action="writeToBrowser",source=img);
See also
- Image manipulation
- image.drawDrawLines()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)