Method: Magick::Image#border

Defined in:
ext/RMagick/rmimage.cpp

#border(width, height, color) ⇒ Magick::Image

Surrounds the image with a border of the specified width, height, and named color.

Parameters:

  • width (Numeric)

    the width of the border

  • height (Numeric)

    the height of the border

  • color (Magick::Pixel, String)

    the color of the border

Returns:



2174
2175
2176
2177
2178
2179
# File 'ext/RMagick/rmimage.cpp', line 2174

VALUE
Image_border(VALUE self, VALUE width, VALUE height, VALUE color)
{
    rm_check_destroyed(self);
    return border(False, self, width, height, color);
}