The GdkPixbuf Structure

Name

The GdkPixbuf Structure -- Information that describes an image.

Synopsis


#include gdk-pixbuf/gdk-pixbuf.h


enum        GdkColorspace;
GdkColorspace gdk_pixbuf_get_colorspace     (const GdkPixbuf *pixbuf);
int         gdk_pixbuf_get_n_channels       (const GdkPixbuf *pixbuf);
gboolean    gdk_pixbuf_get_has_alpha        (const GdkPixbuf *pixbuf);
int         gdk_pixbuf_get_bits_per_sample  (const GdkPixbuf *pixbuf);
guchar*     gdk_pixbuf_get_pixels           (const GdkPixbuf *pixbuf);
int         gdk_pixbuf_get_width            (const GdkPixbuf *pixbuf);
int         gdk_pixbuf_get_height           (const GdkPixbuf *pixbuf);
int         gdk_pixbuf_get_rowstride        (const GdkPixbuf *pixbuf);

Description

The GdkPixbuf structure contains information that describes an image in memory.

Details

typedef enum {
	GDK_COLORSPACE_RGB
} GdkColorspace;

This enumeration defines the color spaces that are supported by the gdk-pixbuf library. Currently only RGB is supported.


GdkColorspace gdk_pixbuf_get_colorspace     (const GdkPixbuf *pixbuf);

Queries the color space of a pixbuf.


int         gdk_pixbuf_get_n_channels       (const GdkPixbuf *pixbuf);

Queries the number of channels of a pixbuf.


gboolean    gdk_pixbuf_get_has_alpha        (const GdkPixbuf *pixbuf);

Queries whether a pixbuf has an alpha channel (opacity information).


int         gdk_pixbuf_get_bits_per_sample  (const GdkPixbuf *pixbuf);

Queries the number of bits per color sample in a pixbuf.