# Exporting Drawings to Images

The Drawing library supports the export of drawings to bitmap images in a PNG file format.

```dojo
    <button class="k-button k-primary" onclick="exportImg()">Export Image</button>
    <script>
        var draw = kendo.drawing;
        var geom = kendo.geometry;

        var rect = new geom.Rect([5, 5], [240, 240]);
        var path = draw.Path.fromRect(rect).stroke("red", 5);

        var root = new draw.Group();
        root.append(path);

        function exportImg(){
        	draw.exportImage(root, { width: "250px", height: "250px" }).done(function(data) {
            	kendo.saveAs({
                	dataURI: data,
                	fileName: "frame.png"
            	});
        	});
        }
    </script>
```

## See Also

* [Getting Started with the Drawing Library](https://www.telerik.com/kendo-jquery-ui/documentation/framework/drawing/get-started)
* [Drawing DOM Elements](https://www.telerik.com/kendo-jquery-ui/documentation/framework/drawing/dom-elements/overview)
* [Exporting Drawings to PDF](https://www.telerik.com/kendo-jquery-ui/documentation/framework/pdf/overview)
* [Exporting Drawings to SVG](https://www.telerik.com/kendo-jquery-ui/documentation/framework/drawing/export-images)
* [Supported Browsers and Known Limitations for Kendo UI Drawing API](https://www.telerik.com/kendo-jquery-ui/documentation/framework/drawing/limitations-browser-support)
