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
| Name | Type | Access | Description |
|---|---|---|---|
name | `` | Read | Gets the name. |
image_extension | `` | Read | Gets the image extension. |
image_bytes | `` | Read | Gets the image bytes. |
hyperlink_url | `` | Read/Write | URL for the picture’s click hyperlink (<a:hlinkClick>). |
edit_as | `` | Read/Write | Anchor editAs mode: ’twoCell’, ‘oneCell’, or ‘absolute’. |
no_change_aspect | `` | Read/Write | Whether the picture’s aspect ratio is locked (<a:picLocks noChangeAspect=‘1’/>). |
Methods
| Signature | Description |
|---|---|
__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 |