Struct CroppedChannels
pub struct CroppedChannels<Channels> { pub full_channels: Channels, pub full_bounds: IntegerBounds, pub cropped_bounds: IntegerBounds }
A smaller window into an existing pixel storage
Fields
full_channels: ChannelsThe uncropped pixel storage
full_bounds: IntegerBoundsThe uncropped pixel storage bounds
cropped_bounds: IntegerBoundsThe cropped pixel storage bounds
Implementations
impl<Channels> CroppedChannels<Channels>
fn crop_layer(new_bounds: IntegerBounds, layer: Layer<Channels>) -> Layer<CroppedChannels<Channels>>Wrap a layer in a cropped view with adjusted bounds, but without reallocating your pixels
Trait Implementations
impl<'slf, Channels> WritableChannels<'slf> for CroppedChannels<Channels>
where
Channels: WritableChannels<'slf> + 'slf,
type Writer = CroppedWriter<<Channels as WritableChannels<'slf>>::Writer>;fn infer_channel_list(&self) -> ChannelListfn infer_level_modes(&self) -> (LevelMode, RoundingMode)fn create_writer(&'slf self, header: &Header) -> Self::Writer
impl<Channels: Clone> Clone for CroppedChannels<Channels>
fn clone(&self) -> Self
impl<Channels: Debug> Debug for CroppedChannels<Channels>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<Channels: Eq> Eq for CroppedChannels<Channels>
impl<Channels: PartialEq> PartialEq for CroppedChannels<Channels>
fn eq(&self, other: &Self) -> bool