Ardour  9.0-pre0-427-gd2a3450e2f
gdkpixbuf.h
Go to the documentation of this file.
1 /* GDK - The GIMP Drawing Kit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 
20 /*
21  * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
22  * file for a list of people on the GTK+ Team. See the ChangeLog
23  * files for a list of changes. These files are distributed with
24  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
25  */
26 
27 #ifndef __GDK_PIXBUF_H__
28 #define __GDK_PIXBUF_H__
29 
30 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
31 #error "Only <gdk/gdk.h> can be included directly."
32 #endif
33 
34 #include <cairo.h>
35 #include <gdk/gdktypes.h>
36 #include <gdk/gdkrgb.h>
37 #include <gdk-pixbuf/gdk-pixbuf.h>
38 
39 G_BEGIN_DECLS
40 
41 /* Rendering to a drawable */
42 
44  GdkBitmap *bitmap,
45  int src_x,
46  int src_y,
47  int dest_x,
48  int dest_y,
49  int width,
50  int height,
51  int alpha_threshold);
52 #ifndef GDK_DISABLE_DEPRECATED
54  GdkDrawable *drawable,
55  GdkGC *gc,
56  int src_x,
57  int src_y,
58  int dest_x,
59  int dest_y,
60  int width,
61  int height,
62  GdkRgbDither dither,
63  int x_dither,
64  int y_dither);
66  GdkDrawable *drawable,
67  int src_x,
68  int src_y,
69  int dest_x,
70  int dest_y,
71  int width,
72  int height,
73  GdkPixbufAlphaMode alpha_mode,
74  int alpha_threshold,
75  GdkRgbDither dither,
76  int x_dither,
77  int y_dither);
78 #endif /* GDK_DISABLE_DEPRECATED */
80  GdkColormap *colormap,
81  GdkPixmap **pixmap_return,
82  GdkBitmap **mask_return,
83  int alpha_threshold);
84 #ifndef GDK_MULTIHEAD_SAFE
86  GdkPixmap **pixmap_return,
87  GdkBitmap **mask_return,
88  int alpha_threshold);
89 #endif
90 
91 
92 /* Fetching a region from a drawable */
93 GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf *dest,
94  GdkDrawable *src,
95  GdkColormap *cmap,
96  int src_x,
97  int src_y,
98  int dest_x,
99  int dest_y,
100  int width,
101  int height);
102 
103 GdkPixbuf *gdk_pixbuf_get_from_image (GdkPixbuf *dest,
104  GdkImage *src,
105  GdkColormap *cmap,
106  int src_x,
107  int src_y,
108  int dest_x,
109  int dest_y,
110  int width,
111  int height);
112 
113 G_END_DECLS
114 
115 #endif /* __GDK_PIXBUF_H__ */
void gdk_pixbuf_render_to_drawable_alpha(GdkPixbuf *pixbuf, GdkDrawable *drawable, int src_x, int src_y, int dest_x, int dest_y, int width, int height, GdkPixbufAlphaMode alpha_mode, int alpha_threshold, GdkRgbDither dither, int x_dither, int y_dither)
void gdk_pixbuf_render_pixmap_and_mask_for_colormap(GdkPixbuf *pixbuf, GdkColormap *colormap, GdkPixmap **pixmap_return, GdkBitmap **mask_return, int alpha_threshold)
G_BEGIN_DECLS void gdk_pixbuf_render_threshold_alpha(GdkPixbuf *pixbuf, GdkBitmap *bitmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_threshold)
void gdk_pixbuf_render_pixmap_and_mask(GdkPixbuf *pixbuf, GdkPixmap **pixmap_return, GdkBitmap **mask_return, int alpha_threshold)
GdkPixbuf * gdk_pixbuf_get_from_drawable(GdkPixbuf *dest, GdkDrawable *src, GdkColormap *cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
void gdk_pixbuf_render_to_drawable(GdkPixbuf *pixbuf, GdkDrawable *drawable, GdkGC *gc, int src_x, int src_y, int dest_x, int dest_y, int width, int height, GdkRgbDither dither, int x_dither, int y_dither)
GdkPixbuf * gdk_pixbuf_get_from_image(GdkPixbuf *dest, GdkImage *src, GdkColormap *cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
GdkRgbDither
Definition: gdkrgb.h:41
GtkImagePixbufData pixbuf
Definition: gtkimage.h:2
Definition: gdkgc.h:190
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1