Method: Vips::Image#draw_rect

Defined in:
lib/vips8/methods.rb

#draw_rect(ink, left, top, width, height, opts = {}) ⇒ Vips::Image

Paint a rectangle on an image.

Parameters:

  • ink (Array<Double>)

    Colour for pixels

  • left (Integer)

    Rect to fill

  • top (Integer)

    Rect to fill

  • width (Integer)

    Rect to fill

  • height (Integer)

    Rect to fill

  • opts (Hash) (defaults to: {})

    Set of options

Options Hash (opts):

  • :fill (Boolean)

    Draw a solid object

Returns:

[View source]

# File 'lib/vips8/methods.rb', line 1657