/// Reduce your image to a smaller part, usually to save memory.
/// Crop if bounds are specified, return the original if no bounds are specified.
/// Does not reduce allocation size of the current image, but instead only adjust a few boundary numbers.
/// Use `reallocate_cropped()` on the return value to actually reduce the memory footprint.
Reduce your image to a smaller part, usually to save memory.
Crop if bounds are specified, return the original if no bounds are specified.
Does not reduce allocation size of the current image, but instead only adjust a few boundary numbers.
Use `reallocate_cropped()` on the return value to actually reduce the memory footprint.
Reduce your image to a smaller part usually to save memory . Crop if bounds are specified return the original if no bounds are specified . Does not reduce allocation size of the current image but instead only adjust a few boundary numbers . Use ` reallocate_cropped () ` on the return value to actually reduce the memory footprint .
fn try_crop(self, bounds: Option<IntegerBounds>) -> CropResult<Self::Cropped, Self> {
        match bounds {
            Some(bounds) => CropResult::Cropped(self.crop(bounds)),
            None => CropResult::Empty { original: self },
        }
    }
fn try_crop ( self , bounds : Option < IntegerBounds > ) -> CropResult < Self :: Cropped , Self > { match bounds { Some ( bounds ) => CropResult :: Cropped ( self . crop ( bounds ) ) , None => CropResult :: Empty { original : self } , } }
Reduce your image to a smaller part, usually to save memory.
Reduce your image to a smaller part usually to save memory .
self
bounds
Option<IntegerBounds>