pub struct RasterLayout {
pub width: usize,
pub height: usize,
pub samples_per_pixel: usize,
pub bits_per_sample: u16,
pub bytes_per_sample: usize,
pub sample_format: u16,
pub planar_configuration: u16,
pub predictor: u16,
}Expand description
Raster layout information normalized from TIFF tags.
Fields§
§width: usize§height: usize§samples_per_pixel: usize§bits_per_sample: u16§bytes_per_sample: usize§sample_format: u16§planar_configuration: u16§predictor: u16Implementations§
Source§impl RasterLayout
impl RasterLayout
pub fn pixel_stride_bytes(&self) -> usize
pub fn row_bytes(&self) -> usize
pub fn sample_plane_row_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for RasterLayout
impl Clone for RasterLayout
Source§fn clone(&self) -> RasterLayout
fn clone(&self) -> RasterLayout
Returns a duplicate 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 RasterLayout
impl Debug for RasterLayout
impl Copy for RasterLayout
Auto Trait Implementations§
impl Freeze for RasterLayout
impl RefUnwindSafe for RasterLayout
impl Send for RasterLayout
impl Sync for RasterLayout
impl Unpin for RasterLayout
impl UnsafeUnpin for RasterLayout
impl UnwindSafe for RasterLayout
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