Struct xlsxwriter::worksheet::ImageOptions
source · pub struct ImageOptions {
pub x_offset: i32,
pub y_offset: i32,
pub x_scale: f64,
pub y_scale: f64,
}
Expand description
Options for modifying images inserted via Worksheet.insert_image_opt
.
Fields§
§x_offset: i32
Offset from the left of the cell in pixels.
y_offset: i32
Offset from the top of the cell in pixels.
x_scale: f64
X scale of the image as a decimal.
y_scale: f64
Y scale of the image as a decimal.
Trait Implementations§
source§impl Clone for ImageOptions
impl Clone for ImageOptions
source§fn clone(&self) -> ImageOptions
fn clone(&self) -> ImageOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageOptions
impl Debug for ImageOptions
source§impl From<&ImageOptions> for lxw_image_options
impl From<&ImageOptions> for lxw_image_options
source§fn from(options: &ImageOptions) -> Self
fn from(options: &ImageOptions) -> Self
Converts to this type from the input type.
source§impl PartialEq<ImageOptions> for ImageOptions
impl PartialEq<ImageOptions> for ImageOptions
source§fn eq(&self, other: &ImageOptions) -> bool
fn eq(&self, other: &ImageOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ImageOptions> for ImageOptions
impl PartialOrd<ImageOptions> for ImageOptions
source§fn partial_cmp(&self, other: &ImageOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &ImageOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more