clipkendo.drawing.Path

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(60, 60).lineTo(160, 60).lineTo(160, 160).lineTo(60, 160).close();
    image.clip(clipPath);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(image);
</script>
In this article
clip
Not finding the help you need?
Contact Support