Method: Vips::Image#extract_area

Defined in:
lib/vips8/methods.rb,
lib/vips8/methods.rb
more...

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

Extract an area from an image.

Parameters:

  • left (Integer)

    Left edge of extract area

  • top (Integer)

    Top edge of extract area

  • width (Integer)

    Width of extract area

  • height (Integer)

    Height of extract area

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

    Set of options

Returns:

[View source]

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