Images

Name

Images —

Synopsis


#include <gdk/gdk.h>


struct      GdkImage;
enum        GdkImageType;
GdkImage*   gdk_image_new_bitmap            (GdkVisual *visual,
                                             gpointer data,
                                             gint width,
                                             gint height);
GdkImage*   gdk_image_new                   (GdkImageType type,
                                             GdkVisual *visual,
                                             gint width,
                                             gint height);
GdkImage*   gdk_image_get                   (GdkWindow *window,
                                             gint x,
                                             gint y,
                                             gint width,
                                             gint height);
void        gdk_image_put_pixel             (GdkImage *image,
                                             gint x,
                                             gint y,
                                             guint32 pixel);
guint32     gdk_image_get_pixel             (GdkImage *image,
                                             gint x,
                                             gint y);
void        gdk_image_destroy               (GdkImage *image);

Description

Details

struct GdkImage

struct GdkImage
{
  GdkImageType	type;
  GdkVisual    *visual;	    /* visual used to create the image */
  GdkByteOrder	byte_order;
  guint16	width;
  guint16	height;
  guint16	depth;
  guint16	bpp;	    /* bytes per pixel */
  guint16	bpl;	    /* bytes per line */
  gpointer	mem;
};


enum GdkImageType

typedef enum
{
  GDK_IMAGE_NORMAL,
  GDK_IMAGE_SHARED,
  GDK_IMAGE_FASTEST
} GdkImageType;


gdk_image_new_bitmap ()

GdkImage*   gdk_image_new_bitmap            (GdkVisual *visual,
                                             gpointer data,
                                             gint width,
                                             gint height);

visual : 
data : 
width : 
height : 
Returns : 


gdk_image_new ()

GdkImage*   gdk_image_new                   (GdkImageType type,
                                             GdkVisual *visual,
                                             gint width,
                                             gint height);

type : 
visual : 
width : 
height : 
Returns : 


gdk_image_get ()

GdkImage*   gdk_image_get                   (GdkWindow *window,
                                             gint x,
                                             gint y,
                                             gint width,
                                             gint height);

window : 
x : 
y : 
width : 
height : 
Returns : 


gdk_image_put_pixel ()

void        gdk_image_put_pixel             (GdkImage *image,
                                             gint x,
                                             gint y,
                                             guint32 pixel);

image : 
x : 
y : 
pixel : 


gdk_image_get_pixel ()

guint32     gdk_image_get_pixel             (GdkImage *image,
                                             gint x,
                                             gint y);

image : 
x : 
y : 
Returns : 


gdk_image_destroy ()

void        gdk_image_destroy               (GdkImage *image);

image :