Method: Magick::Image#resize_to_fill
- Defined in:
- lib/rmagick_internal.rb
#resize_to_fill(ncols, nrows = nil, gravity = CenterGravity) ⇒ Object Also known as: crop_resized
Force an image to exact dimensions without changing the aspect ratio. Resize and crop if necessary. (Thanks to Jerett Taylor!)
971 972 973 |
# File 'lib/rmagick_internal.rb', line 971 def resize_to_fill(ncols, nrows = nil, gravity = CenterGravity) copy.resize_to_fill!(ncols, nrows, gravity) end |