
## draw_image {#bytes-aspose.html.drawing.WebImageFormat-aspose.pydrawing.RectangleF}

Draws the specified image.



```python
def draw_image(self, data, image_format, rect):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| data | bytes | An array of bytes representing the image. |
| image_format | aspose.html.drawing.WebImageFormat | Image format. |
| rect | aspose.pydrawing.RectangleF | A rectangel which determines position and size to draw. |



### See Also
* module [`aspose.html.rendering.doc`](../../)
* class [`DocDevice`](/html/python-net/aspose.html.rendering.doc/docdevice)
