998 999 1000 1001 1002 1003
# File 'lib/rmagick_internal.rb', line 998 def resize_to_fit!(cols, rows = nil) rows ||= cols change_geometry(Geometry.new(cols, rows)) do |ncols, nrows| resize!(ncols, nrows) end end