Trait exr::image::crop::InspectSample

source ·
pub trait InspectSample: GetBounds {
    type Sample;

    // Required method
    fn inspect_sample(&self, local_index: Vec2<usize>) -> Self::Sample;
}
Expand description

Inspect the pixels in this image to determine where to crop some away

Required Associated Types§

source

type Sample

The type of pixel in this pixel grid.

Required Methods§

source

fn inspect_sample(&self, local_index: Vec2<usize>) -> Self::Sample

Index is not in world coordinates, but within the data window. Position (0,0) always represents the top left pixel.

Implementors§

source§

impl InspectSample for Layer<AnyChannels<FlatSamples>>

source§

impl<Samples, Channels> InspectSample for Layer<SpecificChannels<Samples, Channels>>
where Samples: GetPixel,

§

type Sample = <Samples as GetPixel>::Pixel