export enum GimpRotationType to libgimp.
2003-12-09 Michael Natterer <mitch@gimp.org> * app/core/core-enums.h: export enum GimpRotationType to libgimp. * tools/pdbgen/pdb/image.pdb: added gimp_image_rotate() PDB wrapper. * app/pdb/image_cmds.c * app/pdb/internal_procs.c * libgimp/gimpenums.h * libgimp/gimpimage_pdb.[ch] * plug-ins/pygimp/gimpenums.py * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl: regenerated. 2003-12-09 Michael Natterer <mitch@gimp.org> * libgimp/libgimp-sections.txt * libgimp/tmpl/gimpenums.sgml * libgimp/tmpl/gimpimage.sgml: added gimp_image_rotate().
This commit is contained in:
committed by
Michael Natterer
parent
cc5701a42a
commit
e009182a1e
@ -243,6 +243,13 @@ typedef enum
|
||||
GIMP_REPEAT_TRIANGULAR
|
||||
} GimpRepeatMode;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GIMP_ROTATE_90,
|
||||
GIMP_ROTATE_180,
|
||||
GIMP_ROTATE_270
|
||||
} GimpRotationType;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GIMP_RUN_INTERACTIVE,
|
||||
|
||||
@ -437,7 +437,7 @@ gimp_image_crop (gint32 image_ID,
|
||||
*
|
||||
* Flips the image horizontally or vertically.
|
||||
*
|
||||
* This procedure flips (mirrors) the images.
|
||||
* This procedure flips (mirrors) the image.
|
||||
*
|
||||
* Returns: TRUE on success.
|
||||
*/
|
||||
@ -462,6 +462,38 @@ gimp_image_flip (gint32 image_ID,
|
||||
return success;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_image_rotate:
|
||||
* @image_ID: The image.
|
||||
* @rotate_type: Angle of rotation.
|
||||
*
|
||||
* Rotates the image by the spacified degrees.
|
||||
*
|
||||
* This procedure rotates the image.
|
||||
*
|
||||
* Returns: TRUE on success.
|
||||
*/
|
||||
gboolean
|
||||
gimp_image_rotate (gint32 image_ID,
|
||||
GimpRotationType rotate_type)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
gboolean success = TRUE;
|
||||
|
||||
return_vals = gimp_run_procedure ("gimp_image_rotate",
|
||||
&nreturn_vals,
|
||||
GIMP_PDB_IMAGE, image_ID,
|
||||
GIMP_PDB_INT32, rotate_type,
|
||||
GIMP_PDB_END);
|
||||
|
||||
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
|
||||
|
||||
gimp_destroy_params (return_vals, nreturn_vals);
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_image_get_layers:
|
||||
* @image_ID: The image.
|
||||
|
||||
@ -54,6 +54,8 @@ gboolean gimp_image_crop (gint32 ima
|
||||
gint offy);
|
||||
gboolean gimp_image_flip (gint32 image_ID,
|
||||
GimpOrientationType flip_type);
|
||||
gboolean gimp_image_rotate (gint32 image_ID,
|
||||
GimpRotationType rotate_type);
|
||||
gint* gimp_image_get_layers (gint32 image_ID,
|
||||
gint *num_layers);
|
||||
gint* gimp_image_get_channels (gint32 image_ID,
|
||||
|
||||
Reference in New Issue
Block a user