1 /* GdkPixbuf library - transformations
3 * Copyright (C) 2003 The Free Software Foundation
5 * Authors: Mark Crichton <crichton@gimp.org>
6 * Miguel de Icaza <miguel@gnu.org>
7 * Federico Mena-Quintero <federico@gimp.org>
8 * Havoc Pennington <hp@redhat.com>
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the
22 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 * Boston, MA 02111-1307, USA.
26 #if !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
27 #error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
30 #ifndef GDK_PIXBUF_TRANSFORM_H
31 #define GDK_PIXBUF_TRANSFORM_H
34 #include <gdk-pixbuf/gdk-pixbuf-core.h>
41 /* Interpolation modes */
50 GDK_PIXBUF_ROTATE_NONE = 0,
51 GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90,
52 GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180,
53 GDK_PIXBUF_ROTATE_CLOCKWISE = 270
56 void gdk_pixbuf_scale (const GdkPixbuf *src,
66 GdkInterpType interp_type);
67 void gdk_pixbuf_composite (const GdkPixbuf *src,
77 GdkInterpType interp_type,
79 void gdk_pixbuf_composite_color (const GdkPixbuf *src,
89 GdkInterpType interp_type,
97 GdkPixbuf *gdk_pixbuf_scale_simple (const GdkPixbuf *src,
100 GdkInterpType interp_type);
102 GdkPixbuf *gdk_pixbuf_composite_color_simple (const GdkPixbuf *src,
105 GdkInterpType interp_type,
111 GdkPixbuf *gdk_pixbuf_rotate_simple (const GdkPixbuf *src,
112 GdkPixbufRotation angle);
113 GdkPixbuf *gdk_pixbuf_flip (const GdkPixbuf *src,
114 gboolean horizontal);
119 #endif /* GDK_PIXBUF_TRANSFORM_H */