pub struct Png {
pub width: usize,
pub height: usize,
/* private fields */
}Expand description
A PNG read as far as its header: the size is known, the pixels are not decoded yet.
sample_pixel wants one point of a window capture. Decoding the whole capture for it held
three full copies of a 2560×1600 window (the inflated stream, the unfiltered rows and the
RGBA expansion) and took about a second and a half per step in a debug build; a
pixel read stops inflating at the pixel’s row and keeps two rows.
Fields§
§width: usize§height: usizeImplementations§
Auto Trait Implementations§
impl Forget for Png
impl Freeze for Png
impl Move for Png
impl RefUnwindSafe for Png
impl Send for Png
impl Sync for Png
impl Unpin for Png
impl UnsafeUnpin for Png
impl UnwindSafe for Png
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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