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
Required Associated Types
Required Methods
fn 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.