---
title: "Device-2.DrawImage"
url: "https://reference.aspose.com/svg/net/aspose.svg.rendering/device-2/drawimage/"
product: "Aspose.SVG for .NET API Reference"
description: "Device DrawImage method. Draws the specified image"
---

## Device<TGraphicContext,TRenderingOptions>.DrawImage method

Draws the specified image.

```csharp
public virtual void DrawImage(byte[] data, WebImageFormat imageFormat, RectangleF rect)
```

| Parameter | Type | Description |
| --- | --- | --- |
| data | Byte[] | An array of bytes representing the image. |
| imageFormat | WebImageFormat | Image format. |
| rect | RectangleF | A rectangle which determines position and size to draw. |

### See Also

* enum [WebImageFormat](../../../aspose.svg.drawing/webimageformat/)
* class [Device&lt;TGraphicContext,TRenderingOptions&gt;](../)
* namespace [Aspose.Svg.Rendering](../../../aspose.svg.rendering/)
* assembly [Aspose.SVG](../../../)
