Method: Vips::Image#draw_line

Defined in:
lib/vips8/methods.rb

#draw_line(ink, x1, y1, x2, y2, opts = {}) ⇒ Vips::Image

Draw a line on an image.

Parameters:

  • ink (Array<Double>)

    Colour for pixels

  • x1 (Integer)

    Start of draw_line

  • y1 (Integer)

    Start of draw_line

  • x2 (Integer)

    End of draw_line

  • y2 (Integer)

    End of draw_line

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

    Set of options

Returns:

[View source]

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