pub struct FrameCrop {
pub x0: i32,
pub y0: i32,
pub width: u32,
pub height: u32,
}Expand description
Crop rectangle for a frame within the canvas.
When set on a frame, the frame contains only the specified rectangular region.
The decoder composites this region onto the persistent canvas using the frame’s
blend mode. For Replace blending, only the crop rectangle is replaced; the
rest of the canvas is unchanged.
Fields§
§x0: i32X offset of the crop region within the canvas.
y0: i32Y offset of the crop region within the canvas.
width: u32Width of the crop region.
height: u32Height of the crop region.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameCrop
impl RefUnwindSafe for FrameCrop
impl Send for FrameCrop
impl Sync for FrameCrop
impl Unpin for FrameCrop
impl UnsafeUnpin for FrameCrop
impl UnwindSafe for FrameCrop
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more