pub struct FlatSamplesReader {
level: Vec2<usize>,
resolution: Vec2<usize>,
samples: FlatSamples,
}
Expand description
Processes pixel blocks from a file and accumulates them into a grid of samples, for example “Red” or “Alpha”.
Fields§
§level: Vec2<usize>
§resolution: Vec2<usize>
§samples: FlatSamples
Trait Implementations§
source§impl Clone for FlatSamplesReader
impl Clone for FlatSamplesReader
source§fn clone(&self) -> FlatSamplesReader
fn clone(&self) -> FlatSamplesReader
Returns a copy 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 FlatSamplesReader
impl Debug for FlatSamplesReader
source§impl PartialEq for FlatSamplesReader
impl PartialEq for FlatSamplesReader
source§fn eq(&self, other: &FlatSamplesReader) -> bool
fn eq(&self, other: &FlatSamplesReader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SamplesReader for FlatSamplesReader
impl SamplesReader for FlatSamplesReader
§type Samples = FlatSamples
type Samples = FlatSamples
The type of resulting sample storage
source§fn filter_block(&self, tile: TileCoordinates) -> bool
fn filter_block(&self, tile: TileCoordinates) -> bool
Specify whether a single block of pixels should be loaded from the file
source§fn read_line(&mut self, line: LineRef<'_>) -> UnitResult
fn read_line(&mut self, line: LineRef<'_>) -> UnitResult
Load a single pixel line, which has not been filtered, into the reader, accumulating the sample data
source§fn into_samples(self) -> FlatSamples
fn into_samples(self) -> FlatSamples
Deliver the final accumulated sample storage for the image
impl StructuralPartialEq for FlatSamplesReader
Auto Trait Implementations§
impl Freeze for FlatSamplesReader
impl RefUnwindSafe for FlatSamplesReader
impl Send for FlatSamplesReader
impl Sync for FlatSamplesReader
impl Unpin for FlatSamplesReader
impl UnwindSafe for FlatSamplesReader
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