New to Kendo UI for jQuery? Start a free 30-day trial

DrawImage

methods

Draws an Image instance

Parameters:imageUrlString

The path to the image or a base64 string.

Returns:Promise

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

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