New to Kendo UI for jQueryStart a free 30-day trial

Clip

methods

Gets or sets the element clipping path. Inherited from Element.clip

Parameters:clipkendo.drawing.Path

The element clipping path.

Returns:kendo.drawing.Path

The current element clipping path.

<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>
Not finding the help you need?
Contact Support