Method: Vips::Image#draw_flood

Defined in:
lib/vips8/methods.rb

#draw_flood(ink, x, y, opts = {}) ⇒ Vips::Image, Hash<Symbol => Object>

Flood-fill an area.

Parameters:

  • ink (Array<Double>)

    Colour for pixels

  • x (Integer)

    DrawFlood start point

  • y (Integer)

    DrawFlood start point

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

    Set of options

Options Hash (opts):

  • :test (Vips::Image)

    Test pixels in this image

  • :equal (Boolean)

    DrawFlood while equal to edge

  • :left (Integer)

    Output -- Left edge of modified area

  • :top (Integer)

    Output -- top edge of modified area

  • :width (Integer)

    Output -- width of modified area

  • :height (Integer)

    Output -- height of modified area

Returns:

  • (Vips::Image, Hash<Symbol => Object>)

    Image to draw on, Hash of optional output items



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