1 <!-- ##### SECTION Title ##### -->
2 The GdkPixbuf Structure
4 <!-- ##### SECTION Short_Description ##### -->
5 Information that describes an image.
7 <!-- ##### SECTION Long_Description ##### -->
9 <para><anchor id="GdkPixbuf">
10 The <structname>GdkPixbuf</structname> structure contains
11 information that describes an image in memory.
14 <!-- ##### SECTION See_Also ##### -->
18 <!-- ##### ENUM GdkPixbufError ##### -->
20 An error code in the #GDK_PIXBUF_ERROR domain. Many &gdk-pixbuf;
21 operations can cause errors in this domain, or in the #G_FILE_ERROR
25 @GDK_PIXBUF_ERROR_CORRUPT_IMAGE: An image file was broken somehow.
26 @GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY: Not enough memory.
27 @GDK_PIXBUF_ERROR_BAD_OPTION: A bad option was passed to a pixbuf save module.
28 @GDK_PIXBUF_ERROR_UNKNOWN_TYPE: Unknown image type.
29 @GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION: Don't know how to perform the
30 given operation on the type of image at hand.
31 @GDK_PIXBUF_ERROR_FAILED: Generic failure code, something went wrong.
33 <!-- ##### MACRO GDK_PIXBUF_ERROR ##### -->
35 Error domain used for pixbuf operations. Indicates that the error code
36 will be in the #GdkPixbufError enumeration. See #GError for
37 information on error domains and error codes.
42 <!-- ##### ENUM GdkColorspace ##### -->
44 This enumeration defines the color spaces that are supported by
45 the &gdk-pixbuf; library. Currently only RGB is supported.
48 @GDK_COLORSPACE_RGB: Indicates a red/green/blue additive color space.
50 <!-- ##### ENUM GdkPixbufAlphaMode ##### -->
52 These values can be passed to
53 gdk_pixbuf_render_to_drawable_alpha() to control how the alpha
54 chanel of an image should be handled. This function can create a
55 bilevel clipping mask (black and white) and use it while painting
56 the image. In the future, when the X Window System gets an alpha
57 channel extension, it will be possible to do full alpha
58 compositing onto arbitrary drawables. For now both cases fall
59 back to a bilevel clipping mask.
62 @GDK_PIXBUF_ALPHA_BILEVEL: A bilevel clipping mask (black and white)
63 will be created and used to draw the image. Pixels below 0.5 opacity
64 will be considered fully transparent, and all others will be
65 considered fully opaque.
66 @GDK_PIXBUF_ALPHA_FULL: For now falls back to #GDK_PIXBUF_ALPHA_BILEVEL.
67 In the future it will do full alpha compositing.
69 <!-- ##### STRUCT GdkPixbuf ##### -->
71 This is the main structure in the &gdk-pixbuf; library. It is
72 used to represent images. It contains information about the
73 image's pixel data, its color space, bits per sample, width and
74 height, and the rowstride or number of bytes between rows.
78 <!-- ##### FUNCTION gdk_pixbuf_get_colorspace ##### -->
87 <!-- ##### FUNCTION gdk_pixbuf_get_n_channels ##### -->
96 <!-- ##### FUNCTION gdk_pixbuf_get_has_alpha ##### -->
105 <!-- ##### FUNCTION gdk_pixbuf_get_bits_per_sample ##### -->
114 <!-- ##### FUNCTION gdk_pixbuf_get_pixels ##### -->
123 <!-- ##### FUNCTION gdk_pixbuf_get_width ##### -->
132 <!-- ##### FUNCTION gdk_pixbuf_get_height ##### -->
141 <!-- ##### FUNCTION gdk_pixbuf_get_rowstride ##### -->
150 sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
155 <!-- ##### FUNCTION gdk_pixbuf_get_option ##### -->