pub struct Window {
pub x0: u32,
pub y0: u32,
pub x1: u32,
pub y1: u32,
}Expand description
A rectangle on the image’s reference grid, x0..x1 by y0..y1, for
Region::Window. The bounds are half-open: x1 and y1 are one
past the last column and row.
The reference grid is the one SIZ declares, so the image area is
XOsiz..Xsiz by YOsiz..Ysiz, and (0, 0) is the grid’s origin, not the
image’s top-left when the image has an offset. This is the rectangle
OpenJPEG’s opj_set_decode_area and opj_decompress -d x0,y0,x1,y1 take.
Fields§
§x0: u32The left edge.
y0: u32The top edge.
x1: u32One past the right edge.
y1: u32One past the bottom edge.
Implementations§
Trait Implementations§
impl Copy for Window
impl Eq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Forget for Window
impl Freeze for Window
impl Move for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
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