Promotic
WikipediaLinkedInYoutubeTwitterFacebook

clip - method of object CanvasCtx

Description:
The Metoda clip demarcates the drawn shape (path). Additional drawing will be displayed only inside the defined shape. All graphic outside the shape will not be dispayed.
Syntax:
clip As Object
Calling:
ctx.clip();
Note:
The method can also be called in the graphic item events for Web Panels.
Example:
ctx.fillStyle = "blue";
ctx.rect(40, 40, 360, 220);
ctx.clip();
  
ctx.strokeStyle = "#000000";
ctx.moveTo(0, 0);
ctx.lineTo(400, 300);
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice