clip
Gets or sets the element clipping path. Inherited from Element.clip
Example
<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
var draw = kendo.drawing;
var geom = kendo.geometry;
var rect = new geom.Rect([10, 10], [200, 150]);
var image = new draw.Image("https://demos.telerik.com/kendo-ui/content/web/editor/tenerife.png", rect);
var clipPath = new draw.Path();
clipPath.moveTo(50, 50).lineTo(150, 50).lineTo(150, 150).lineTo(50, 150).close();
image.clip(clipPath);
console.log("Clip path set:", image.clip());
var surface = draw.Surface.create($("#surface"));
surface.draw(image);
</script>
Parameters
clip kendo.drawing.Path
The element clipping path.
Returns
kendo.drawing.Path
The current element clipping path.
In this article