Method: Magick::Image#scale!

Defined in:
ext/RMagick/rmimage.cpp

#scale!(scale) ⇒ Magick::Image #scale!(cols, rows) ⇒ Magick::Image

Change the size of an image to the given dimensions. Alias of #sample!.

Overloads:

  • #scale!(scale) ⇒ Magick::Image

    Parameters:

    • scale (Float)

      You can use this argument instead of specifying the desired width and height. The percentage size change. For example, 1.25 makes the new image 125% of the size of the receiver. The scale factor 0.5 makes the new image 50% of the size of the receiver.

  • #scale!(cols, rows) ⇒ Magick::Image

    Parameters:

    • cols (Numeric)

      The desired width.

    • rows (Numeric)

      The desired height.

Returns:

See Also:



12479
12480
12481
12482
12483
12484
# File 'ext/RMagick/rmimage.cpp', line 12479

VALUE
Image_scale_bang(int argc, VALUE *argv, VALUE self)
{
    rm_check_frozen(self);
    return scale(True, argc, argv, self, GVL_FUNC(ScaleImage));
}