Picture

Overview

Picture is a class in Aspose.Cells FOSS for Python.

Represents a worksheet picture anchored to cells.

This class provides 2 methods for working with Picture objects in Python programs. Available methods include: __init__, copy. All public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package. Properties: edit_as, hyperlink_url, image_bytes, image_extension, name, no_change_aspect.

Properties

NameTypeAccessDescription
name``ReadGets the name.
image_extension``ReadGets the image extension.
image_bytes``ReadGets the image bytes.
hyperlink_url``Read/WriteURL for the picture’s click hyperlink (<a:hlinkClick>).
edit_as``Read/WriteAnchor editAs mode: ’twoCell’, ‘oneCell’, or ‘absolute’.
no_change_aspect``Read/WriteWhether the picture’s aspect ratio is locked (<a:picLocks noChangeAspect=‘1’/>).

Methods

SignatureDescription
__init__(worksheet, image_bytes, image_extension, upper_left_row, upper_left_column, lower_right_row, lower_right_column, name)
copy(worksheet)Copies the picture to the given worksheet

See Also