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.

See also: vips_affine(), vips_subsample().

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

Horizontal scale factor.

yfac int
 

Vertical scale factor.

...
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.