Promotic
WikipediaLinkedInYoutubeTwitterFacebook

beginPath - method of object CanvasCtx

Description:
Sets the beginning of the drawing path, or resets the current path.
Syntax:
beginPath As Object
Calling:
ctx.beginPath();
Note:
The method can also be called in the graphic item events for Web panels.
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 = 5;
ctx.strokeStyle = "blue";
ctx.rect(50, 50, 150, 80);
ctx.stroke();
PROMOTIC 8.3.27 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