
## setImage(fileName) {#string}

Changes the fill type to single image.


```js
setImage(fileName: string)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fileName | string | The path to the image file. |

## setImage(stream) {#buffer}

Changes the fill type to single image.


```js
setImage(stream: Buffer)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Buffer | The stream that contains the image bytes. |

## setImage(imageBytes) {#number[]}

Changes the fill type to single image.


```js
setImage(imageBytes: number[])
```

| Parameter | Type | Description |
| --- | --- | --- |
| imageBytes | number[] | The image bytes array. |

## See Also

* module [Aspose.Words.Drawing](../../)
* class [Fill](../)

