Trait exr::image::crop::InspectSample[][src]

pub trait InspectSample: GetBounds {
    type Sample;
    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

Associated Types

type Sample[src]

The type of pixel in this pixel grid.

Required methods

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

Index is not in world coordinates. Position (0,0) always represents the bottom left pixel.

Implementors

impl InspectSample for Layer<AnyChannels<FlatSamples>>[src]

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

type Sample = Samples::Pixel

fn inspect_sample(&self, local_index: Vec2<usize>) -> Samples::Pixel[src]