Function

Vipscheck_size_same

Declaration [src]

int
vips_check_size_same (
  const char* domain,
  VipsImage* im1,
  VipsImage* im2
)

Description [src]

Check that the images have the same size. If not, set an error message and return non-zero.

::: seealso vips_error().

Parameters

domain const char*
 

The originating domain for the error message.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
im1 VipsImage
 

First image to check.

 The data is owned by the caller of the function.
im2 VipsImage
 

Second image to check.

 The data is owned by the caller of the function.

Return value

Returns: int
 

0 if OK, -1 otherwise.