diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2004-06-20 05:11:57 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-06-20 05:11:57 +0000 |
commit | 4df83e1c50b60aa8e0d4334eeffebfe8c3a280a3 (patch) | |
tree | c5b14a06bda3afba99e8ce064bf2d41f5c5a5fbc /gdk-pixbuf/gdk-pixbuf-transform.h | |
parent | 6c217649976d0dd416466b1fe5a9c251779922c7 (diff) | |
download | gtk+-4df83e1c50b60aa8e0d4334eeffebfe8c3a280a3.tar.gz |
Header file reorganization. (#51999)
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-transform.h')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-transform.h | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-transform.h b/gdk-pixbuf/gdk-pixbuf-transform.h new file mode 100644 index 0000000000..b6c25c9cb2 --- /dev/null +++ b/gdk-pixbuf/gdk-pixbuf-transform.h @@ -0,0 +1,104 @@ +/* GdkPixbuf library - transformations + * + * Copyright (C) 2003 The Free Software Foundation + * + * Authors: Mark Crichton <crichton@gimp.org> + * Miguel de Icaza <miguel@gnu.org> + * Federico Mena-Quintero <federico@gimp.org> + * Havoc Pennington <hp@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GDK_PIXBUF_TRANSFORM_H +#define GDK_PIXBUF_TRANSFORM_H + +#include <glib.h> +#include <gdk-pixbuf/gdk-pixbuf-core.h> + + +G_BEGIN_DECLS + +/* Scaling */ + +/* Interpolation modes */ +typedef enum { + GDK_INTERP_NEAREST, + GDK_INTERP_TILES, + GDK_INTERP_BILINEAR, + GDK_INTERP_HYPER +} GdkInterpType; + +void gdk_pixbuf_scale (const GdkPixbuf *src, + GdkPixbuf *dest, + int dest_x, + int dest_y, + int dest_width, + int dest_height, + double offset_x, + double offset_y, + double scale_x, + double scale_y, + GdkInterpType interp_type); +void gdk_pixbuf_composite (const GdkPixbuf *src, + GdkPixbuf *dest, + int dest_x, + int dest_y, + int dest_width, + int dest_height, + double offset_x, + double offset_y, + double scale_x, + double scale_y, + GdkInterpType interp_type, + int overall_alpha); +void gdk_pixbuf_composite_color (const GdkPixbuf *src, + GdkPixbuf *dest, + int dest_x, + int dest_y, + int dest_width, + int dest_height, + double offset_x, + double offset_y, + double scale_x, + double scale_y, + GdkInterpType interp_type, + int overall_alpha, + int check_x, + int check_y, + int check_size, + guint32 color1, + guint32 color2); + +GdkPixbuf *gdk_pixbuf_scale_simple (const GdkPixbuf *src, + int dest_width, + int dest_height, + GdkInterpType interp_type); + +GdkPixbuf *gdk_pixbuf_composite_color_simple (const GdkPixbuf *src, + int dest_width, + int dest_height, + GdkInterpType interp_type, + int overall_alpha, + int check_size, + guint32 color1, + guint32 color2); + + +G_END_DECLS + + +#endif /* GDK_PIXBUF_TRANSFORM_H */ |