module StumpyResize
Defined in:
stumpy_resize.crstumpy_resize/bicubic.cr
stumpy_resize/bilinear.cr
stumpy_resize/gaussian_blur.cr
stumpy_resize/lanczos.cr
stumpy_resize/nearest_neighbor.cr
Constant Summary
-
VERSION =
"1.1.0"
Class Method Summary
- .blur(image : Canvas, radius : Int32) : Canvas
-
.lanczos_a : Int32
adjust this up to improve quality
-
.lanczos_a=(lanczos_a : Int32)
adjust this up to improve quality
- .resize(image : Canvas, new_width : Int32, new_height : Int32, method : InterpolationMethod = InterpolationMethod::Lanczos) : Canvas
-
.resize_bicubic(image : Canvas, new_image : Canvas) : Nil
Cubic Convolution Algorithm
- .resize_bilinear(image : Canvas, new_image : Canvas) : Nil
- .resize_lanczos(image : Canvas, new_image : Canvas) : Nil
- .resize_nearest_neighbor(image : Canvas, new_image : Canvas) : Nil
Class Method Detail
def self.resize(image : Canvas, new_width : Int32, new_height : Int32, method : InterpolationMethod = InterpolationMethod::Lanczos) : Canvas
#
Cubic Convolution Algorithm