module CrImage::Operation::Crop
Overview
Crops an image
Taking sample image
:
# These calls are equivalent
image.crop(40, 30, 80, 80)
image[40...120, 30...110]
Direct including types
Defined in:
cr-image/operation/crop.crInstance Method Summary
- #[](xrange : Range, yrange : Range) : self
- #crop(x : Int32, y : Int32, new_width : Int32, new_height : Int32) : self
- #crop(region : Region) : self
- #crop!(x : Int32, y : Int32, new_width : Int32, new_height : Int32) : self
- #crop!(region : Region) : self