Struct printpdf::image::ImageTransform
source · [−]pub struct ImageTransform {
pub translate_x: Option<Mm>,
pub translate_y: Option<Mm>,
pub rotate: Option<ImageRotation>,
pub scale_x: Option<f64>,
pub scale_y: Option<f64>,
pub dpi: Option<f64>,
}
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<f64>
scale_y: Option<f64>
dpi: Option<f64>
If set to None, will be set to 300.0 for images
Trait Implementations
sourceimpl Clone for ImageTransform
impl Clone for ImageTransform
sourcefn clone(&self) -> ImageTransform
fn clone(&self) -> ImageTransform
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ImageTransform
impl Debug for ImageTransform
sourceimpl Default for ImageTransform
impl Default for ImageTransform
sourcefn default() -> ImageTransform
fn default() -> ImageTransform
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ImageTransform> for ImageTransform
impl PartialEq<ImageTransform> for ImageTransform
sourcefn 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 ==
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IsDefault for T where
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for T where
T: Default + PartialEq<T> + Copy,
sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.