__init__ constructor
Leave feedback
On this page
Initializes a new instance of the WordProcessingWatermarkableImage class using specified image data.
def __init__(self, image_data):
...
| Parameter | Type | Description |
|---|---|---|
| image_data | list[int] |
The list of unsigned bytes from which to create the WordProcessingWatermarkableImage. |
import groupdocs.watermark as gw
import groupdocs.watermark.contents.wordprocessing as gwc_wp
with open("test.png", "rb") as f:
img_bytes = f.read()
image = gwc_wp.WordProcessingWatermarkableImage(img_bytes)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.