Struct printpdf::ImageTransform
source · pub struct ImageTransform {
pub translate_x: Option<Mm>,
pub translate_y: Option<Mm>,
pub rotate: Option<ImageRotation>,
pub scale_x: Option<f32>,
pub scale_y: Option<f32>,
pub dpi: Option<f32>,
}
Expand description
Transform that is applied immediately before the image gets painted. Does not affect anything other than the image.
Fields§
§translate_x: Option<Mm>
§translate_y: Option<Mm>
§rotate: Option<ImageRotation>
Rotate (counter-clockwise) around a point, in degree angles
scale_x: Option<f32>
§scale_y: Option<f32>
§dpi: Option<f32>
If set to None, will be set to 300.0 for images
Trait Implementations§
source§impl Clone for ImageTransform
impl Clone for ImageTransform
source§fn clone(&self) -> ImageTransform
fn clone(&self) -> ImageTransform
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 ImageTransform
impl Debug for ImageTransform
source§impl Default for ImageTransform
impl Default for ImageTransform
source§fn default() -> ImageTransform
fn default() -> ImageTransform
Returns the “default value” for a type. Read more
source§impl PartialEq for ImageTransform
impl PartialEq for ImageTransform
source§fn eq(&self, other: &ImageTransform) -> bool
fn eq(&self, other: &ImageTransform) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ImageTransform
impl StructuralPartialEq for ImageTransform
Auto Trait Implementations§
impl RefUnwindSafe for ImageTransform
impl Send for ImageTransform
impl Sync for ImageTransform
impl Unpin for ImageTransform
impl UnwindSafe for ImageTransform
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more