Method

VipsImageround

Declaration [src]

int
vips_round (
  VipsImage* in,
  VipsImage** out,
  VipsOperationRound round,
  ...
)

Description [src]

Round to an integral value.

Copy for integer types, round float and complex types.

The format of out is always the same as in, so you may wish to cast to an integer format afterwards.

::: seealso vips_cast()

Parameters

out VipsImage
 

Output VipsImage

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

VipsOperationRound rounding operation to perform.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.