1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
Rendering a pixbuf to a GDK drawable.
7
<!-- ##### SECTION Long_Description ##### -->
9
The &gdk-pixbuf; library provides several convenience functions to
10
render pixbufs to GDK drawables. It uses the GdkRGB to render the
15
At this point there is not a standard alpha channel extension for
16
the X Window System, so it is not possible to use full opacity
17
information when painting images to arbitrary drawables. The
18
&gdk-pixbuf; convenience functions will threshold the opacity
19
information to create a bi-level clipping mask (black and white),
20
and use that to draw the image onto a drawable.
25
Since these functions use GdkRGB for rendering, you must
26
initialize GdkRGB before using any of them. You can do this by
27
calling gdk_rgb_init() near the beginning of your program.
31
<!-- ##### SECTION See_Also ##### -->
36
<!-- ##### ENUM GdkPixbufAlphaMode ##### -->
38
These values can be passed to
39
gdk_pixbuf_render_to_drawable_alpha() to control how the alpha
40
chanel of an image should be handled. This function can create a
41
bilevel clipping mask (black and white) and use it while painting
42
the image. In the future, when the X Window System gets an alpha
43
channel extension, it will be possible to do full alpha
44
compositing onto arbitrary drawables. For now both cases fall
45
back to a bilevel clipping mask.
48
@GDK_PIXBUF_ALPHA_BILEVEL: A bilevel clipping mask (black and white)
49
will be created and used to draw the image. Pixels below 0.5 opacity
50
will be considered fully transparent, and all others will be
51
considered fully opaque.
52
@GDK_PIXBUF_ALPHA_FULL: For now falls back to #GDK_PIXBUF_ALPHA_BILEVEL.
53
In the future it will do full alpha compositing.
55
<!-- ##### FUNCTION gdk_pixbuf_render_to_drawable_alpha ##### -->
75
<!-- ##### FUNCTION gdk_pixbuf_render_to_drawable ##### -->
94
<!-- ##### FUNCTION gdk_pixbuf_render_threshold_alpha ##### -->
110
<!-- ##### FUNCTION gdk_pixbuf_render_pixmap_and_mask ##### -->
118
@alpha_threshold: <!--
121
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")