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§
Required Methods§
sourcefn inspect_sample(&self, local_index: Vec2<usize>) -> Self::Sample
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.