]> Pileus Git - ~andy/gtk/blob - gdk/gdkpixbuf.h
Merge from gdk-pixbuf stable.
[~andy/gtk] / gdk / gdkpixbuf.h
1 #ifndef __GDK_PIXBUF_H__
2 #define __GDK_PIXBUF_H__
3
4 #include <gdk/gdktypes.h>
5 #include <gdk/gdkrgb.h>
6 #include <gdk-pixbuf/gdk-pixbuf.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif /* __cplusplus */
11
12 /* Rendering to a drawable */
13
14 void gdk_pixbuf_render_threshold_alpha   (GdkPixbuf           *pixbuf,
15                                           GdkBitmap           *bitmap,
16                                           int                  src_x,
17                                           int                  src_y,
18                                           int                  dest_x,
19                                           int                  dest_y,
20                                           int                  width,
21                                           int                  height,
22                                           int                  alpha_threshold);
23 void gdk_pixbuf_render_to_drawable       (GdkPixbuf           *pixbuf,
24                                           GdkDrawable         *drawable,
25                                           GdkGC               *gc,
26                                           int                  src_x,
27                                           int                  src_y,
28                                           int                  dest_x,
29                                           int                  dest_y,
30                                           int                  width,
31                                           int                  height,
32                                           GdkRgbDither         dither,
33                                           int                  x_dither,
34                                           int                  y_dither);
35 void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf           *pixbuf,
36                                           GdkDrawable         *drawable,
37                                           int                  src_x,
38                                           int                  src_y,
39                                           int                  dest_x,
40                                           int                  dest_y,
41                                           int                  width,
42                                           int                  height,
43                                           GdkPixbufAlphaMode   alpha_mode,
44                                           int                  alpha_threshold,
45                                           GdkRgbDither         dither,
46                                           int                  x_dither,
47                                           int                  y_dither);
48
49 void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf    *pixbuf,
50                                                      GdkColormap  *colormap,
51                                                      GdkPixmap   **pixmap_return,
52                                                      GdkBitmap   **mask_return,
53                                                      int           alpha_threshold);
54 void gdk_pixbuf_render_pixmap_and_mask              (GdkPixbuf    *pixbuf,
55                                                      GdkPixmap   **pixmap_return,
56                                                      GdkBitmap   **mask_return,
57                                                      int           alpha_threshold);
58
59
60 /* Fetching a region from a drawable */
61 GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf   *dest,
62                                          GdkDrawable *src,
63                                          GdkColormap *cmap,
64                                          int          src_x,
65                                          int          src_y,
66                                          int          dest_x,
67                                          int          dest_y,
68                                          int          width,
69                                          int          height);
70
71 GdkPixbuf *gdk_pixbuf_get_from_image    (GdkPixbuf   *dest,
72                                          GdkImage    *src,
73                                          GdkColormap *cmap,
74                                          int          src_x,
75                                          int          src_y,
76                                          int          dest_x,
77                                          int          dest_y,
78                                          int          width,
79                                          int          height);
80
81 #ifdef __cplusplus
82 }
83 #endif /* __cplusplus */
84
85 #endif /* __GDK_PIXBUF_H__ */