src

Gets or sets the image source URL.

Example - changing the image source

<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://goo.gl/6ov8Gw", rect);

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

    setTimeout(function() {
        image.src("https://goo.gl/10IzfV");
    }, 1000);
</script>

Parameters

value StringThe new source URL.

Returns

String The current image source URL.

In this article