gdk-pixbuf.h 1.06 KB
Newer Older
Arturo Espinosa's avatar
Arturo Espinosa committed
1 2 3
#ifndef _GDK_PIXBUF_H_
#define _GDK_PIXBUF_H_

4
#include <libart_lgpl/art_misc.h>
Arturo Espinosa's avatar
Arturo Espinosa committed
5
#include <libart_lgpl/art_pixbuf.h>
6
#include <glib.h>
Arturo Espinosa's avatar
Arturo Espinosa committed
7

Michael Meeks's avatar
Michael Meeks committed
8 9 10 11 12 13 14 15 16
typedef struct _GdkPixBuf GdkPixBuf;
typedef void (*GdkPixBufUnrefFunc) (GdkPixBuf *pixbuf);

struct _GdkPixBuf
{
	int                 ref_count;
	ArtPixBuf          *art_pixbuf;
	GdkPixBufUnrefFunc *unref_fn;
};
Arturo Espinosa's avatar
Arturo Espinosa committed
17 18 19

GdkPixBuf *gdk_pixbuf_load_image (const char *file);
void       gdk_pixbuf_save_image (const char *format_id, const char *file, ...);
Michael Meeks's avatar
Michael Meeks committed
20 21
GdkPixBuf *gdk_pixbuf_new        (ArtPixBuf          *art_pixbuf,
				  GdkPixBufUnrefFunc *unref_fn);
Arturo Espinosa's avatar
Arturo Espinosa committed
22 23
void       gdk_pixbuf_ref        (GdkPixBuf *pixbuf);
void       gdk_pixbuf_unref      (GdkPixBuf *pixbuf);
Michael Meeks's avatar
Michael Meeks committed
24 25
GdkPixBuf *gdk_pixbuf_duplicate  (const GdkPixBuf *pixbuf);
GdkPixBuf *gdk_pixbuf_scale	 (const GdkPixBuf *pixbuf, gint w, gint h);
Mark Crichton's avatar
Mark Crichton committed
26
GdkPixBuf *gdk_pixbuf_rotate     (GdkPixBuf *pixbuf, gdouble angle);
27

Mark Crichton's avatar
Mark Crichton committed
28
void	   gdk_pixbuf_destroy    (GdkPixBuf *pixbuf);
Arturo Espinosa's avatar
Arturo Espinosa committed
29

30 31 32 33
GdkPixBuf *gdk_pixbuf_load_image_from_rgb_d (unsigned char *data, 
					     int rgb_width, int rgb_height);


Arturo Espinosa's avatar
Arturo Espinosa committed
34
#endif /* _GDK_PIXBUF_H_ */