SpreadsheetWatermarkableImage class

SpreadsheetWatermarkableImage class

Represents an image inside an Excel document.

The SpreadsheetWatermarkableImage type exposes the following members:

Constructors

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

Methods

Method Description
add Adds a watermark to this WatermarkableImage. This method assumes that watermark offset and size are measured in pixels (if they are assigned). (inherited from WatermarkableImage)
add_watermark (inherited from WatermarkableImage)
find_images Finds images according to the specified search criteria. (inherited from ContentPart)
find_images_image_search_criteria (inherited from ContentPart)
get_bytes Gets the image as a byte array. (inherited from WatermarkableImage)
search Finds possible watermarks according to the specified search criteria. (inherited from ContentPart)
search_search_criteria (inherited from ContentPart)

Properties

Property Description
height The height of this WatermarkableImage in pixels. (inherited from WatermarkableImage)
width The width of this WatermarkableImage in pixels. (inherited from WatermarkableImage)

Example

import groupdocs.watermark as gw
import groupdocs.watermark.contents.spreadsheet as gwc_xls

with open("test.png", "rb") as f:
    img = gwc_xls.SpreadsheetWatermarkableImage(f.read())
# img can be assigned to shape.image, chart background, etc.

See Also