Promotic
WikipediaLinkedInYoutubeTwitterFacebook

stroke - method of object CanvasCtx

Description:
Strokes the edge of the currently edited object (path).
Syntax:
stroke As Object
Calling:
ctx.stroke();
See also:
Example:
The ctx variable represents the drawing canvas (CanvasCtx). The setup is done on Draw page at the beginning of the script of drawing event onDraw as follows:
 
var ctx = pEvent.GetCtx(1);
JavaScriptSelect and copy to clipboard

ctx.beginPath();
ctx.lineWidth = 10;
ctx.strokeStyle = "blue";
ctx.rect(50, 50, 150, 80);
ctx.stroke();
PROMOTIC 8.3.26 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice