ImageSetDrawingStroke()
Sets the drawing stroke for points and lines in subsequent images.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageSetDrawingStroke( image=any, attributeCollection=struct );
Returns: void
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
attributeCollection
struct,
optional
|
edit
The structure used to specify the line attributes:
|
Examples
edit lineAttributes = { width="2", endcaps="round", dashArray=[8,4]};
imgObj = imageNew("",152,152,"rgb","149c82");
imgObj.setDrawingStroke(lineAttributes);
imgObj.drawLines([0,38,76,114,152],[0,152,0,152,0],"no","no");
cfimage(action="writeToBrowser", source=imgObj);
See also
- Image manipulation
- image.setDrawingStroke()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)