gdk-pixbuf.sgml 2.98 KB
Newer Older
1
<!-- ##### SECTION Title ##### -->
2
The GdkPixbuf Structure
3 4

<!-- ##### SECTION Short_Description ##### -->
5
Information that describes an image.
6 7

<!-- ##### SECTION Long_Description ##### -->
8

9 10 11 12
  <para>
    The <structname>GdkPixbuf</structname> structure contains
    information that describes an image in memory.
  </para>
13 14

<!-- ##### SECTION See_Also ##### -->
15 16
  <para>
  </para>
17

18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<!-- ##### ENUM GdkPixbufError ##### -->
<para>

</para>

@GDK_PIXBUF_ERROR_CORRUPT_IMAGE: 
@GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY: 
@GDK_PIXBUF_ERROR_BAD_OPTION_VALUE: 
@GDK_PIXBUF_ERROR_UNKNOWN_TYPE: 
@GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION: 
@GDK_PIXBUF_ERROR_FAILED: 

<!-- ##### MACRO GDK_PIXBUF_ERROR ##### -->
<para>

</para>



<!-- ##### ENUM GdkColorspace ##### -->
38 39 40 41
  <para>
    This enumeration defines the color spaces that are supported by
    the &gdk-pixbuf; library.  Currently only RGB is supported.
  </para>
42

43
@GDK_COLORSPACE_RGB: Indicates a red/green/blue additive color space.
44 45

<!-- ##### ENUM GdkPixbufAlphaMode ##### -->
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
  <para>
    These values can be passed to
    gdk_pixbuf_render_to_drawable_alpha() to control how the alpha
    chanel of an image should be handled.  This function can create a
    bilevel clipping mask (black and white) and use it while painting
    the image.  In the future, when the X Window System gets an alpha
    channel extension, it will be possible to do full alpha
    compositing onto arbitrary drawables.  For now both cases fall
    back to a bilevel clipping mask.
  </para>

@GDK_PIXBUF_ALPHA_BILEVEL: A bilevel clipping mask (black and white)
will be created and used to draw the image.  Pixels below 0.5 opacity
will be considered fully transparent, and all others will be
considered fully opaque.
@GDK_PIXBUF_ALPHA_FULL: For now falls back to #GDK_PIXBUF_ALPHA_BILEVEL.
In the future it will do full alpha compositing.
63 64

<!-- ##### STRUCT GdkPixbuf ##### -->
65 66 67 68 69 70
  <para>
    This is the main structure in the &gdk-pixbuf; library.  It is
    used to represent images.  It contains information about the
    image's pixel data, its color space, bits per sample, width and
    height, and the rowstride or number of bytes between rows.
  </para>
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141


<!-- ##### FUNCTION gdk_pixbuf_get_colorspace ##### -->
<para>

</para>

@pixbuf: 
@Returns: 


<!-- ##### FUNCTION gdk_pixbuf_get_n_channels ##### -->
<para>

</para>

@pixbuf: 
@Returns: 


<!-- ##### FUNCTION gdk_pixbuf_get_has_alpha ##### -->
<para>

</para>

@pixbuf: 
@Returns: 


<!-- ##### FUNCTION gdk_pixbuf_get_bits_per_sample ##### -->
<para>

</para>

@pixbuf: 
@Returns: 


<!-- ##### FUNCTION gdk_pixbuf_get_pixels ##### -->
<para>

</para>

@pixbuf: 
@Returns: 


<!-- ##### FUNCTION gdk_pixbuf_get_width ##### -->
<para>

</para>

@pixbuf: 
@Returns: 


<!-- ##### FUNCTION gdk_pixbuf_get_height ##### -->
<para>

</para>

@pixbuf: 
@Returns: 


<!-- ##### FUNCTION gdk_pixbuf_get_rowstride ##### -->
<para>

</para>

@pixbuf: 
142 143 144 145 146 147
@Returns: <!--
Local variables:
mode: sgml
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
End:
-->
148 149