Method

VipsImagezoom

Declaration [src]

int
vips_zoom (
  VipsImage* in,
  VipsImage** out,
  int xfac,
  int yfac,
  ...
)

Description [src]

Zoom an image by repeating pixels. This is fast nearest-neighbour zoom.

::: seealso vips_affine(), vips_subsample().

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.
xfac int
 

Horizontal scale factor.

yfac int
 

Vertical scale factor.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.