__init__ constructor

On this page

init

Initializes a new instance of the SpreadsheetWatermarkableImage class using specified image data.

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

Example

import groupdocs.watermark.contents.spreadsheet as gwc_xls

with open("test.png", "rb") as f:
    image = gwc_xls.SpreadsheetWatermarkableImage(f.read())

See Also

On this page