Picture

Overview

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

Represents a worksheet picture anchored to cells.

This class declares 2 methods for Picture objects in Python programs. Available methods include: __init__, copy. 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)Calls init(worksheet, image_bytes, image_extension, upper_left_row, upper_left_column, lower_right_row, lower_right_column, name) on this Picture instance.
copy(worksheet)Creates a duplicate of the picture in the specified worksheet, preserving image bytes and hyperlink information

See Also

 English