__init__ constructor

On this page

init

Initializes a new DiagramWatermarkableImage from raw image bytes.

def __init__(self, image_data):
    ...
Parameter Type Description
image_data list[int] The array of unsigned bytes from which to create the DiagramWatermarkableImage.

Example

import groupdocs.watermark as gw
import groupdocs.watermark.contents.diagram as gwc_vsdx

with open("test.png", "rb") as f:
    img = gwc_vsdx.DiagramWatermarkableImage(f.read())

See Also

On this page