Trait exr::image::crop::ApplyCroppedView

source ·
pub trait ApplyCroppedView {
    type Reallocated;

    // Required method
    fn reallocate_cropped(self) -> Self::Reallocated;
}
Expand description

Realize a cropped view of the original data, by actually removing the unwanted original pixels, reducing the memory consumption. Currently not supported for SpecificChannels.

Required Associated Types§

source

type Reallocated

The simpler type after cropping is realized

Required Methods§

source

fn reallocate_cropped(self) -> Self::Reallocated

Make the cropping real by reallocating the underlying storage, with the goal of reducing total memory usage. Currently not supported for SpecificChannels.

Implementors§