Method: Magick::Image#gravity=

Defined in:
ext/RMagick/rmimage.cpp

#gravity=(gravity) ⇒ Magick::GravityType

Set the direction that the image gravitates within the composite.

Parameters:

  • gravity (Magick::GravityType)

    the image gravity

Returns:

  • (Magick::GravityType)

    the given value



15029
15030
15031
15032
15033
15034
# File 'ext/RMagick/rmimage.cpp', line 15029

VALUE Image_gravity_eq(VALUE self, VALUE gravity)
{
    Image *image = rm_check_frozen(self);
    VALUE_TO_ENUM(gravity, image->gravity, GravityType);
    return gravity;
}