1 <!-- ##### SECTION Title ##### -->
2 The GdkPixbuf Structure
4 <!-- ##### SECTION Short_Description ##### -->
5 Information that describes an image.
7 <!-- ##### SECTION Long_Description ##### -->
10 The <structname>GdkPixbuf</structname> structure contains
11 information that describes an image in memory.
14 <!-- ##### SECTION See_Also ##### -->
18 <!-- ##### ENUM GdkPixbufError ##### -->
23 @GDK_PIXBUF_ERROR_HEADER_CORRUPT:
24 @GDK_PIXBUF_ERROR_PIXEL_CORRUPT:
25 @GDK_PIXBUF_ERROR_UNKNOWN_FORMAT:
26 @GDK_PIXBUF_ERROR_CORRUPT_IMAGE:
27 @GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY:
28 @GDK_PIXBUF_ERROR_BAD_OPTION_VALUE:
29 @GDK_PIXBUF_ERROR_UNKNOWN_TYPE:
30 @GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION:
31 @GDK_PIXBUF_ERROR_FAILED:
33 <!-- ##### MACRO GDK_PIXBUF_ERROR ##### -->
40 <!-- ##### ENUM GdkColorspace ##### -->
42 This enumeration defines the color spaces that are supported by
43 the &gdk-pixbuf; library. Currently only RGB is supported.
46 @GDK_COLORSPACE_RGB: Indicates a red/green/blue additive color space.
48 <!-- ##### ENUM GdkPixbufAlphaMode ##### -->
50 These values can be passed to
51 gdk_pixbuf_render_to_drawable_alpha() to control how the alpha
52 chanel of an image should be handled. This function can create a
53 bilevel clipping mask (black and white) and use it while painting
54 the image. In the future, when the X Window System gets an alpha
55 channel extension, it will be possible to do full alpha
56 compositing onto arbitrary drawables. For now both cases fall
57 back to a bilevel clipping mask.
60 @GDK_PIXBUF_ALPHA_BILEVEL: A bilevel clipping mask (black and white)
61 will be created and used to draw the image. Pixels below 0.5 opacity
62 will be considered fully transparent, and all others will be
63 considered fully opaque.
64 @GDK_PIXBUF_ALPHA_FULL: For now falls back to #GDK_PIXBUF_ALPHA_BILEVEL.
65 In the future it will do full alpha compositing.
67 <!-- ##### STRUCT GdkPixbuf ##### -->
69 This is the main structure in the &gdk-pixbuf; library. It is
70 used to represent images. It contains information about the
71 image's pixel data, its color space, bits per sample, width and
72 height, and the rowstride or number of bytes between rows.
76 <!-- ##### FUNCTION gdk_pixbuf_get_colorspace ##### -->
85 <!-- ##### FUNCTION gdk_pixbuf_get_n_channels ##### -->
94 <!-- ##### FUNCTION gdk_pixbuf_get_has_alpha ##### -->
103 <!-- ##### FUNCTION gdk_pixbuf_get_bits_per_sample ##### -->
112 <!-- ##### FUNCTION gdk_pixbuf_get_pixels ##### -->
121 <!-- ##### FUNCTION gdk_pixbuf_get_width ##### -->
130 <!-- ##### FUNCTION gdk_pixbuf_get_height ##### -->
139 <!-- ##### FUNCTION gdk_pixbuf_get_rowstride ##### -->
148 sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")