Method: Fleximage::Operator::Base#stretch
- Defined in:
- lib/fleximage/operator/base.rb
#stretch(size, img = @image) ⇒ Object
Resize the image, with no respect to aspect ratio.
Operation will happen in the main @image
unless you supply the img
argument to operate on instead.
145 146 147 |
# File 'lib/fleximage/operator/base.rb', line 145 def stretch(size, img = @image) img.resize!(*size_to_xy(size)) end |