1 #ifndef __GDK_IMAGE_H__
2 #define __GDK_IMAGE_H__
4 #include <gdk/gdktypes.h>
8 #endif /* __cplusplus */
11 * Normal: Normal X image type. These are slow as they involve passing
12 * the entire image through the X connection each time a draw
13 * request is required. On Win32, a bitmap.
14 * Shared: Shared memory X image type. These are fast as the X server
15 * and the program actually use the same piece of memory. They
16 * should be used with care though as there is the possibility
17 * for both the X server and the program to be reading/writing
18 * the image simultaneously and producing undesired results.
19 * On Win32, also a bitmap.
20 * Shared Pixmap: Also a shared memory image, which also has a
21 * pixmap using the same memory. Used by gdk_imlib with the
29 GDK_IMAGE_SHARED_PIXMAP
35 GdkVisual *visual; /* visual used to create the image */
36 GdkByteOrder byte_order;
40 guint16 bpp; /* bytes per pixel */
41 guint16 bpl; /* bytes per line */
45 GdkImage* gdk_image_new_bitmap(GdkVisual *visual,
49 GdkImage* gdk_image_new (GdkImageType type,
53 #ifdef GDK_WINDOWING_WIN32
54 GdkImage* gdk_image_bitmap_new(GdkImageType type,
60 GdkImage* gdk_image_get (GdkDrawable *drawable,
66 GdkImage * gdk_image_ref (GdkImage *image);
67 void gdk_image_unref (GdkImage *image);
69 void gdk_image_put_pixel (GdkImage *image,
73 guint32 gdk_image_get_pixel (GdkImage *image,
80 #endif /* __cplusplus */
82 #endif /* __GDK_IMAGE_H__ */