Promotic
WikipediaLinkedInYoutubeTwitterFacebook

closePath - method of object CanvasCtx

Description:
Connects the path between the last actual drawing point and the first starting point.
Syntax:
closePath As Object
Calling:
ctx.closePath();
Note:
The method creates a path. Therefore before this method is called the beginPath method should be called. For the rendering itself the stroke or fill method is used.
 
The method can also be called in the graphic item events for Web Panels.
See also:
Example:
ctx.moveTo(20, 20);
ctx.lineTo(20, 100);
ctx.lineTo(70, 100);
ctx.closePath();
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice