Method

VipsImageextract_area

Declaration [src]

int
vips_extract_area (
  VipsImage* in,
  VipsImage** out,
  int left,
  int top,
  int width,
  int height,
  ...
)

Description [src]

Extract an area from an image. The area must fit within in.

See also: vips_extract_bands(), vips_smartcrop().

This method is not directly available to language bindings.

Parameters

out VipsImage
 

Output image.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
left int
 

Left edge of area to extract.

top int
 

Top edge of area to extract.

width int
 

Width of area to extract.

height int
 

Height of area to extract.

...
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.