Method: Magick::Image#border

Defined in:
ext/RMagick/rmimage.c

#border(width, height, color) ⇒ Object

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

Ruby usage:

- @verbatim Image#border(width, height, color) @endverbatim

Parameters:

  • self

    this object

  • width

    the width of the border

  • height

    the height of the border

  • color

    the color of the border

Returns:

  • a new image

See Also:

[View source]

1934
1935
1936
1937
1938
1939
# File 'ext/RMagick/rmimage.c', line 1934

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