diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-06-21 04:52:24 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-06-21 04:52:24 +0000 |
commit | a6b7469caf4b5ae35be5aa204ace4de3316df5f6 (patch) | |
tree | 261b1d90ee8ea752a9bc2ba90c09ba36323a1521 /gdk-pixbuf/gdk-pixbuf-transform.h | |
parent | 6b82abcbe05e3d9874483884cee930394b394534 (diff) | |
download | gtk+-a6b7469caf4b5ae35be5aa204ace4de3316df5f6.tar.gz |
New functions to rotate pixbufs by multiples of 90 degrees and to flip
Mon Jun 21 00:44:51 2004 Matthias Clasen <maclas@gmx.de>
* gdk-pixbuf-transform.h:
* gdk-pixbuf-scale.c (gdk_pixbuf_rotate_simple):
* gdk-pixbuf-scale.c (gdk_pixbuf_flip): New functions to
rotate pixbufs by multiples of 90 degrees and to flip them
horizontally or vertically.
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-transform.h')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-transform.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-transform.h b/gdk-pixbuf/gdk-pixbuf-transform.h index b6c25c9cb2..6a1bb1e523 100644 --- a/gdk-pixbuf/gdk-pixbuf-transform.h +++ b/gdk-pixbuf/gdk-pixbuf-transform.h @@ -42,6 +42,13 @@ typedef enum { GDK_INTERP_HYPER } GdkInterpType; +typedef enum { + GDK_PIXBUF_ROTATE_NONE = 0, + GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90, + GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180, + GDK_PIXBUF_ROTATE_CLOCKWISE = 270 +} GdkPixbufRotation; + void gdk_pixbuf_scale (const GdkPixbuf *src, GdkPixbuf *dest, int dest_x, @@ -97,7 +104,11 @@ GdkPixbuf *gdk_pixbuf_composite_color_simple (const GdkPixbuf *src, guint32 color1, guint32 color2); - +GdkPixbuf *gdk_pixbuf_rotate_simple (const GdkPixbuf *src, + GdkPixbufRotation angle); +GdkPixbuf *gdk_pixbuf_flip (const GdkPixbuf *src, + gboolean horizontal); + G_END_DECLS |