
## set_image(input_file_name, output_file_name, watermark_image_file_name) {#str_str_str}

Adds an image watermark into the document.


```python
def set_image(self, input_file_name: str, output_file_name: str, watermark_image_file_name: str):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| input_file_name | str | The input file name. |
| output_file_name | str | The output file name. |
| watermark_image_file_name | str | Image that is displayed as a watermark. |

### Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.




## set_image(input_file_name, output_file_name, watermark_image_file_name, options) {#str_str_str_imagewatermarkoptions}

Adds an image watermark into the document with options.


```python
def set_image(self, input_file_name: str, output_file_name: str, watermark_image_file_name: str, options: aspose.words.ImageWatermarkOptions):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| input_file_name | str | The input file name. |
| output_file_name | str | The output file name. |
| watermark_image_file_name | str | Image that is displayed as a watermark. |
| options | [ImageWatermarkOptions](../../../aspose.words/imagewatermarkoptions/) | Defines additional options for the image watermark. |

### Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.




## set_image(input_file_name, output_file_name, save_format, watermark_image_file_name) {#str_str_saveformat_str}

Adds an image watermark into the document with options and specified save format.


```python
def set_image(self, input_file_name: str, output_file_name: str, save_format: aspose.words.SaveFormat, watermark_image_file_name: str):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| input_file_name | str | The input file name. |
| output_file_name | str | The output file name. |
| save_format | [SaveFormat](../../../aspose.words/saveformat/) | The save format. |
| watermark_image_file_name | str | Image that is displayed as a watermark. |

### Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.




## set_image(input_file_name, output_file_name, save_format, watermark_image_file_name, options) {#str_str_saveformat_str_imagewatermarkoptions}

Adds an image watermark into the document with options and specified save format.


```python
def set_image(self, input_file_name: str, output_file_name: str, save_format: aspose.words.SaveFormat, watermark_image_file_name: str, options: aspose.words.ImageWatermarkOptions):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| input_file_name | str | The input file name. |
| output_file_name | str | The output file name. |
| save_format | [SaveFormat](../../../aspose.words/saveformat/) | The save format. |
| watermark_image_file_name | str | Image that is displayed as a watermark. |
| options | [ImageWatermarkOptions](../../../aspose.words/imagewatermarkoptions/) | Defines additional options for the image watermark. |

### Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.




## set_image(input_file_name, output_file_name, save_options, watermark_image_file_name) {#str_str_saveoptions_str}

Adds an image watermark into the document with options and specified save format.


```python
def set_image(self, input_file_name: str, output_file_name: str, save_options: aspose.words.saving.SaveOptions, watermark_image_file_name: str):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| input_file_name | str | The input file name. |
| output_file_name | str | The output file name. |
| save_options | [SaveOptions](../../../aspose.words.saving/saveoptions/) | The save options. |
| watermark_image_file_name | str | Image that is displayed as a watermark. |

### Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.




## set_image(input_file_name, output_file_name, save_options, watermark_image_file_name, options) {#str_str_saveoptions_str_imagewatermarkoptions}

Adds an image watermark into the document with options and specified save format.


```python
def set_image(self, input_file_name: str, output_file_name: str, save_options: aspose.words.saving.SaveOptions, watermark_image_file_name: str, options: aspose.words.ImageWatermarkOptions):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| input_file_name | str | The input file name. |
| output_file_name | str | The output file name. |
| save_options | [SaveOptions](../../../aspose.words.saving/saveoptions/) | The save options. |
| watermark_image_file_name | str | Image that is displayed as a watermark. |
| options | [ImageWatermarkOptions](../../../aspose.words/imagewatermarkoptions/) | Defines additional options for the image watermark. |

### Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.




## set_image(input_stream, output_stream, save_format, watermark_image_stream) {#bytesio_bytesio_saveformat_bytesio}

```python
def set_image(self, input_stream: io.BytesIO, output_stream: io.BytesIO, save_format: aspose.words.SaveFormat, watermark_image_stream: io.BytesIO):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| input_stream | io.BytesIO |  |
| output_stream | io.BytesIO |  |
| save_format | [SaveFormat](../../../aspose.words/saveformat/) |  |
| watermark_image_stream | io.BytesIO |  |

## set_image(input_stream, output_stream, save_format, watermark_image_stream, options) {#bytesio_bytesio_saveformat_bytesio_imagewatermarkoptions}

```python
def set_image(self, input_stream: io.BytesIO, output_stream: io.BytesIO, save_format: aspose.words.SaveFormat, watermark_image_stream: io.BytesIO, options: aspose.words.ImageWatermarkOptions):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| input_stream | io.BytesIO |  |
| output_stream | io.BytesIO |  |
| save_format | [SaveFormat](../../../aspose.words/saveformat/) |  |
| watermark_image_stream | io.BytesIO |  |
| options | [ImageWatermarkOptions](../../../aspose.words/imagewatermarkoptions/) |  |

## set_image(input_stream, output_stream, save_options, watermark_image_stream) {#bytesio_bytesio_saveoptions_bytesio}

```python
def set_image(self, input_stream: io.BytesIO, output_stream: io.BytesIO, save_options: aspose.words.saving.SaveOptions, watermark_image_stream: io.BytesIO):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| input_stream | io.BytesIO |  |
| output_stream | io.BytesIO |  |
| save_options | [SaveOptions](../../../aspose.words.saving/saveoptions/) |  |
| watermark_image_stream | io.BytesIO |  |

## set_image(input_stream, output_stream, save_options, watermark_image_stream, options) {#bytesio_bytesio_saveoptions_bytesio_imagewatermarkoptions}

```python
def set_image(self, input_stream: io.BytesIO, output_stream: io.BytesIO, save_options: aspose.words.saving.SaveOptions, watermark_image_stream: io.BytesIO, options: aspose.words.ImageWatermarkOptions):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| input_stream | io.BytesIO |  |
| output_stream | io.BytesIO |  |
| save_options | [SaveOptions](../../../aspose.words.saving/saveoptions/) |  |
| watermark_image_stream | io.BytesIO |  |
| options | [ImageWatermarkOptions](../../../aspose.words/imagewatermarkoptions/) |  |

## Examples

Shows how to insert watermark image to the document.

```python
doc = MY_DIR + 'Document.docx'
watermark_image = IMAGE_DIR + 'Logo.jpg'
aw.lowcode.Watermarker.set_image(input_file_name=doc, output_file_name=ARTIFACTS_DIR + 'LowCode.SetWatermarkImage.1.docx', watermark_image_file_name=watermark_image)
aw.lowcode.Watermarker.set_image(input_file_name=doc, output_file_name=ARTIFACTS_DIR + 'LowCode.SetWatermarkText.2.docx', save_format=aw.SaveFormat.DOCX, watermark_image_file_name=watermark_image)
options = aw.ImageWatermarkOptions()
options.scale = 50
aw.lowcode.Watermarker.set_image(input_file_name=doc, output_file_name=ARTIFACTS_DIR + 'LowCode.SetWatermarkText.3.docx', watermark_image_file_name=watermark_image, options=options)
aw.lowcode.Watermarker.set_image(input_file_name=doc, output_file_name=ARTIFACTS_DIR + 'LowCode.SetWatermarkText.4.docx', save_format=aw.SaveFormat.DOCX, watermark_image_file_name=watermark_image, options=options)
```

## See Also

* module [aspose.words.lowcode](../../)
* class [Watermarker](../)

