pub struct FlatSamplesReader { /* private fields */ }
Expand description
Processes pixel blocks from a file and accumulates them into a grid of samples, for example “Red” or “Alpha”.
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<FlatSamplesReader> for FlatSamplesReader
impl PartialEq<FlatSamplesReader> 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