Method
GeglRectanglealign
Declaration [src]
gboolean
gegl_rectangle_align (
GeglRectangle* destination,
const GeglRectangle* rectangle,
const GeglRectangle* tile,
GeglRectangleAlignment alignment
)
Description [src]
Aligns rectangle
to a regular tile grid, of which tile
is a representative
tile, and stores the result in destination
.
alignment
can be one of:
GEGL_RECTANGLE_ALIGNMENT_SUBSET: Calculate the biggest aligned rectangle
contained in rectangle
.
GEGL_RECTANGLE_ALIGNMENT_SUPERSET: Calculate the smallest aligned
rectangle containing rectangle
.
GEGL_RECTANGLE_ALIGNMENT_NEAREST: Calculate the nearest aligned rectangle
to rectangle
.
destination
may point to the same object as rectangle
or tile
.
Returns TRUE if the result is not empty.
Parameters
rectangle |
GeglRectangle |
A |
|
The data is owned by the caller of the function. | |
tile |
GeglRectangle |
A |
|
The data is owned by the caller of the function. | |
alignment |
GeglRectangleAlignment |
A |