Picture
Overview
Picture is a struct in Aspose.Cells FOSS for Rust.
Represents a picture (image) anchored to a worksheet.
This struct provides 23 methods for working with Picture objects in Rust programs.
Available methods include: data, delete, extension, get_data, get_extension, get_image_type, get_lower_right_column, get_lower_right_row, get_name, get_upper_left_column, get_upper_left_row, image_type, and 11 additional methods.
All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.
Methods
| Signature | Description |
|---|---|
upper_left_row() → u32 | Gets the zero-based row index of the upper-left anchor cell. |
get_upper_left_row() → u32 | Gets the zero-based row index of the upper-left anchor cell. |
set_upper_left_row(value: u32) → Result<(), CellsError> | Sets the zero-based row index of the upper-left anchor cell. |
upper_left_column() → u32 | Gets the zero-based column index of the upper-left anchor cell. |
get_upper_left_column() → u32 | Gets the zero-based column index of the upper-left anchor cell. |
set_upper_left_column(value: u32) → Result<(), CellsError> | Sets the zero-based column index of the upper-left anchor cell. |
lower_right_row() → u32 | Gets the zero-based row index of the lower-right anchor cell. |
get_lower_right_row() → u32 | Gets the zero-based row index of the lower-right anchor cell. |
set_lower_right_row(value: u32) → Result<(), CellsError> | Sets the zero-based row index of the lower-right anchor cell. |
lower_right_column() → u32 | Gets the zero-based column index of the lower-right anchor cell. |
get_lower_right_column() → u32 | Gets the zero-based column index of the lower-right anchor cell. |
set_lower_right_column(value: u32) → Result<(), CellsError> | Sets the zero-based column index of the lower-right anchor cell. |
name() → &str | Gets the display name of the picture. |
get_name() → &str | Gets the display name of the picture. |
set_name(value: impl Into<String>) | Sets the display name of the picture. |
extension() → &str | Gets the associated value. |
get_extension() → &str | Gets the associated value. |
image_type() → ImageType | Gets the image format derived from the file extension. |
get_image_type() → ImageType | Gets the image format derived from the file extension. |
data() → &[u8] | Gets the raw binary bytes of the image. |
get_data() → &[u8] | Gets the raw binary bytes of the image. |
set_data(data: Vec<u8>) → Result<(), CellsError> | Sets the raw binary bytes of the image. |
delete() | Deletes this item from its owning collection. |