pub struct TransformParams {
pub scale_x: f64,
pub scale_y: f64,
pub translate_x: f64,
pub translate_y: f64,
pub rotate: f64,
pub pivot_x: f64,
pub pivot_y: f64,
pub sampling: TransformSampling,
}Expand description
Transforms a raster inside its existing static bounds.
Fields§
§scale_x: f64Horizontal scale multiplier.
scale_y: f64Vertical scale multiplier.
translate_x: f64Horizontal translation in pixels.
translate_y: f64Vertical translation in pixels.
rotate: f64Rotation in degrees.
pivot_x: f64Horizontal pivot point in pixels.
pivot_y: f64Vertical pivot point in pixels.
sampling: TransformSamplingSampling filter used when transforming.
Trait Implementations§
Source§impl Clone for TransformParams
impl Clone for TransformParams
Source§impl Debug for TransformParams
impl Debug for TransformParams
Source§impl Default for TransformParams
impl Default for TransformParams
Source§impl Delegated for TransformParams
impl Delegated for TransformParams
type Delegate = TransformParamsDelegate
fn into_delegate(self) -> Self::Delegate
Auto Trait Implementations§
impl Freeze for TransformParams
impl RefUnwindSafe for TransformParams
impl Send for TransformParams
impl Sync for TransformParams
impl Unpin for TransformParams
impl UnsafeUnpin for TransformParams
impl UnwindSafe for TransformParams
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