getCurrent2dContext

Returns the canvas' 2d context object

Example

<button id="getCanvas" class='k-button'>Get Canvas Object</button>
<div id="imageEditor"></div>
<script>
  $("#imageEditor").kendoImageEditor({
    imageUrl: "https://demos.telerik.com/kendo-ui/content/shared/images/photos/2.jpg"
  });
  var imageEditor = $("#imageEditor").data("kendoImageEditor");
  $("#getCanvas").click(function(){
    var canvas = imageEditor.getCurrent2dContext()
    console.log(canvas);
  })
</script>

Returns Object

In this article