app: add gimp_gegl_create_transform_node()

... which takes a GimpMatrix3, and returns a corresponding
gegl:transform node.
This commit is contained in:
Ell 2019-05-29 04:37:29 -04:00
parent 117734f45f
commit 3895dc07a9
2 changed files with 18 additions and 0 deletions

View File

@ -126,6 +126,22 @@ gimp_gegl_create_apply_opacity_node (GeglBuffer *mask,
return node;
}
GeglNode *
gimp_gegl_create_transform_node (const GimpMatrix3 *matrix)
{
GeglNode *node;
g_return_val_if_fail (matrix != NULL, NULL);
node = gegl_node_new_child (NULL,
"operation", "gegl:transform",
NULL);
gimp_gegl_node_set_matrix (node, matrix);
return node;
}
GeglNode *
gimp_gegl_add_buffer_source (GeglNode *parent,
GeglBuffer *buffer,

View File

@ -29,6 +29,8 @@ GeglNode * gimp_gegl_create_apply_opacity_node (GeglBuffer *mask,
gint mask_offset_x,
gint mask_offset_y,
gdouble opacity);
GeglNode * gimp_gegl_create_transform_node (const GimpMatrix3 *matrix);
GeglNode * gimp_gegl_add_buffer_source (GeglNode *parent,
GeglBuffer *buffer,
gint offset_x,