Gets or sets the rectangle defines the image position and size.

Example - resizing the image

<div id="surface" style="width: 250px; height: 250px;"></div>
    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("", rect);

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

    setTimeout(function() {
        image.rect().setSize([120, 120]);
    }, 1000);


value kendo.geometry.RectThe new image rectangle.


kendo.geometry.Rect The current image rectangle.

In this article
Not finding the help you need? Improve this article