module CrImage::Operation::BilinearResize
Overview
Resize an image using a bilinear resizing algorithm.
Taking sample image
:
puts image.width, image.height # => 159x199
image.bilinear_resize(40, 50).save("small_sample.jpg")
image.bilinear_resize(200, 250).save("larger_sample.jpg")
Direct including types
Defined in:
cr-image/operation/bilinear_resize.crInstance Method Summary
-
#bilinear_resize(width : Int32, height : Int32) : self
Resizes image to new dimensions
-
#bilinear_resize!(width : Int32, height : Int32) : self
Resizes image to new dimensions.
Instance Method Detail
def bilinear_resize!(width : Int32, height : Int32) : self
#
Resizes image to new dimensions. Modifies self.