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

Src

methods

Gets or sets the image source URL.

Parameters:valueString

The new source URL.

Returns:String

The current image source URL.

<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],  // Position of the top left corner
        [240, 240] // Size of the rectangle
    );
    var image = new draw.Image("https://demos.telerik.com/kendo-ui/content/web/editor/tenerife.png", rect);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(image);

    setTimeout(function() {
        image.src("https://goo.gl/10IzfV");
    }, 1000);
</script>
Not finding the help you need?
Contact Support