
## 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 rectangle which determines position and size to draw. |



### See Also
* module [`aspose.html.rendering`](../../)
* class [`IDevice`](/html/python-net/aspose.html.rendering/idevice)
