drawImage

Draws an Image instance

Parameters

imageUrl String

The path to the image or a base64 string.

ReturnsPromise A promise that will be resolved with the Image instance or fails with an error.

Example

<div id="imageEditor"></div>
<script>
    $("#imageEditor").kendoImageEditor();
    var imageEditor = $("#imageEditor").data("kendoImageEditor");

    imageEditor.drawImage("https://demos.telerik.com/kendo-ui/content/shared/images/photos/2.jpg").done(function (image) {
        imageEditor.drawCanvas(image);
    }).fail(function (ev) {
        alert("Something went wrong!");
    });
</script>
In this article