Method

VipsRegionequalsregion

Declaration [src]

int
vips_region_equalsregion (
  VipsRegion* reg1,
  VipsRegion* reg2
)

Description [src]

Do two regions point to the same piece of image? ie.

    VIPS_REGION_ADDR( reg1, x, y ) == VIPS_REGION_ADDR( reg2, x, y ) &&
    *VIPS_REGION_ADDR( reg1, x, y ) ==
        *VIPS_REGION_ADDR( reg2, x, y ) for all x, y, reg1, reg2.

Parameters

reg2 VipsRegion
 

Region to test.

 The data is owned by the caller of the function.

Return value

Returns: int
 

Non-zero on equality.