<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > GeneralScript > DrawingContext > Method >stroke |
Renders the strokes of the current subpath by using the current stroke styles.
Prototype :
void stroke
(
No Arguments
)
Reference :
Line color and line thickness are defined by strokeStyle and lineWidthdefines.
The function draws the shape on the screen regardless of transparency or clipping of the component and it can draw the arc even in areas outside of the component. However, the shape drawn outside the input component area is clipped.
The shape drawn by the function can be exported only in pdf, jpg, png, gif, tif, svg format.
Example :
ctx.strokeStyle = "#FF0000";
ctx.lineWidth = 2;
ctx.beginPath();
ctx.lineTo(0, 10);
ctx.lineTo(100, 10);
ctx.stroke();
Available Events :
OnPostDraw, OnPreDraw
See also :