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 | |
43 | void gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf, |
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 |
53 | void gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf, |
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); |
65 | void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf *pixbuf, |
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 */ |
79 | void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf, |
80 | GdkColormap *colormap, |
81 | GdkPixmap **pixmap_return, |
82 | GdkBitmap **mask_return, |
83 | int alpha_threshold); |
84 | #ifndef GDK_MULTIHEAD_SAFE |
85 | void gdk_pixbuf_render_pixmap_and_mask (GdkPixbuf *pixbuf, |
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__ */ |
116 | |