gdk_pixbuf2 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +29 -0
- data/Rakefile +34 -0
- data/ext/gdk_pixbuf2/depend +11 -0
- data/ext/gdk_pixbuf2/extconf.rb +66 -0
- data/ext/gdk_pixbuf2/gdk_pixbuf2.def +2 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +179 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +164 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +737 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +41 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +42 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +35 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +93 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +71 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +53 -0
- data/ext/gdk_pixbuf2/rbgdk-pixdata.c +213 -0
- data/extconf.rb +49 -0
- data/lib/2.0/gdk_pixbuf2.so +0 -0
- data/lib/2.1/gdk_pixbuf2.so +0 -0
- data/lib/2.2/gdk_pixbuf2.so +0 -0
- data/lib/gdk_pixbuf2.rb +57 -0
- data/sample/anim.rb +38 -0
- data/sample/composite.rb +45 -0
- data/sample/flip.rb +47 -0
- data/sample/floppybuddy.gif +0 -0
- data/sample/format.rb +39 -0
- data/sample/gnome-foot.png +0 -0
- data/sample/inline.rb +37 -0
- data/sample/loader.rb +20 -0
- data/sample/pixdata.rb +39 -0
- data/sample/rotate.rb +45 -0
- data/sample/save.rb +25 -0
- data/sample/scale.rb +45 -0
- data/sample/simpleanim.rb +34 -0
- data/sample/utils.rb +44 -0
- data/sample/xpm.rb +40 -0
- data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-pixdata.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
- data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +204 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +464 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +33 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +120 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +343 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +108 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +36 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +64 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +158 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +43 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +168 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +139 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la +41 -0
- data/vendor/local/lib/gdk_pixbuf-2.0.def +128 -0
- data/vendor/local/lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.la +41 -0
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +19 -0
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +3443 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +827 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +65 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +35 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +46 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +108 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +50 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +47 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +35 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +72 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +65 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +39 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +53 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +787 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/composite.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +1068 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +794 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +864 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +491 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +639 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +1298 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +208 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +914 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +898 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +381 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +184 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +197 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +438 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +1115 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +167 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +159 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +45 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +44 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +85 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +226 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +150 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +322 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +59 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +101 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +50 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up.png +0 -0
- data/vendor/local/share/license/gdk-pixbuf/AUTHORS +65 -0
- data/vendor/local/share/license/gdk-pixbuf/COPYING +482 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ang/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/br/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/crh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/csb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/io/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/li/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/my/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nso/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz@cyrillic/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +135 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +73 -0
- metadata +273 -0
@@ -0,0 +1,197 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>GDK-PixBuf Reference Manual: X Drawables to Pixbufs</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
|
+
<link rel="home" href="index.html" title="GDK-PixBuf Reference Manual">
|
8
|
+
<link rel="up" href="rn01.html" title="API Reference">
|
9
|
+
<link rel="prev" href="gdk-pixbuf-Xlib-Rendering.html" title="Xlib Rendering">
|
10
|
+
<link rel="next" href="gdk-pixbuf-XlibRGB.html" title="XlibRGB">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts">
|
17
|
+
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
+
<a href="#gdk-pixbuf-X-Drawables-to-Pixbufs.description" class="shortcut">Description</a></span>
|
19
|
+
</td>
|
20
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
21
|
+
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
22
|
+
<td><a accesskey="p" href="gdk-pixbuf-Xlib-Rendering.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
23
|
+
<td><a accesskey="n" href="gdk-pixbuf-XlibRGB.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
24
|
+
</tr></table>
|
25
|
+
<div class="refentry">
|
26
|
+
<a name="gdk-pixbuf-X-Drawables-to-Pixbufs"></a><div class="titlepage"></div>
|
27
|
+
<div class="refnamediv"><table width="100%"><tr>
|
28
|
+
<td valign="top">
|
29
|
+
<h2><span class="refentrytitle"><a name="gdk-pixbuf-X-Drawables-to-Pixbufs.top_of_page"></a>X Drawables to Pixbufs</span></h2>
|
30
|
+
<p>X Drawables to Pixbufs — Getting parts of an X drawable's image data into a pixbuf.</p>
|
31
|
+
</td>
|
32
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
33
|
+
</tr></table></div>
|
34
|
+
<div class="refsect1">
|
35
|
+
<a name="gdk-pixbuf-X-Drawables-to-Pixbufs.functions"></a><h2>Functions</h2>
|
36
|
+
<div class="informaltable"><table width="100%" border="0">
|
37
|
+
<colgroup>
|
38
|
+
<col width="150px" class="functions_return">
|
39
|
+
<col class="functions_name">
|
40
|
+
</colgroup>
|
41
|
+
<tbody><tr>
|
42
|
+
<td class="function_type">
|
43
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
44
|
+
</td>
|
45
|
+
<td class="function_name">
|
46
|
+
<a class="link" href="gdk-pixbuf-X-Drawables-to-Pixbufs.html#gdk-pixbuf-xlib-get-from-drawable" title="gdk_pixbuf_xlib_get_from_drawable ()">gdk_pixbuf_xlib_get_from_drawable</a> <span class="c_punctuation">()</span>
|
47
|
+
</td>
|
48
|
+
</tr></tbody>
|
49
|
+
</table></div>
|
50
|
+
</div>
|
51
|
+
<div class="refsect1">
|
52
|
+
<a name="gdk-pixbuf-X-Drawables-to-Pixbufs.includes"></a><h2>Includes</h2>
|
53
|
+
<pre class="synopsis">#include <gdk-pixbuf/gdk-pixbuf.h>
|
54
|
+
</pre>
|
55
|
+
</div>
|
56
|
+
<div class="refsect1">
|
57
|
+
<a name="gdk-pixbuf-X-Drawables-to-Pixbufs.description"></a><h2>Description</h2>
|
58
|
+
<p>The functions in this section allow you to take the image data
|
59
|
+
from an X drawable and dump it into a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>. This can be
|
60
|
+
used for screenshots and other special effects. Note that these
|
61
|
+
operations can be expensive, since the image data has to be
|
62
|
+
transferred from the X server to the client program and converted.</p>
|
63
|
+
<p>These functions are analogous to those for the GDK version of
|
64
|
+
&gdk-pixbuf;.</p>
|
65
|
+
</div>
|
66
|
+
<div class="refsect1">
|
67
|
+
<a name="gdk-pixbuf-X-Drawables-to-Pixbufs.functions_details"></a><h2>Functions</h2>
|
68
|
+
<div class="refsect2">
|
69
|
+
<a name="gdk-pixbuf-xlib-get-from-drawable"></a><h3>gdk_pixbuf_xlib_get_from_drawable ()</h3>
|
70
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
71
|
+
gdk_pixbuf_xlib_get_from_drawable (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *dest</code></em>,
|
72
|
+
<em class="parameter"><code><span class="type">Drawable</span> src</code></em>,
|
73
|
+
<em class="parameter"><code><span class="type">Colormap</span> cmap</code></em>,
|
74
|
+
<em class="parameter"><code><span class="type">Visual</span> *visual</code></em>,
|
75
|
+
<em class="parameter"><code><span class="type">int</span> src_x</code></em>,
|
76
|
+
<em class="parameter"><code><span class="type">int</span> src_y</code></em>,
|
77
|
+
<em class="parameter"><code><span class="type">int</span> dest_x</code></em>,
|
78
|
+
<em class="parameter"><code><span class="type">int</span> dest_y</code></em>,
|
79
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
80
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
|
81
|
+
<p>Transfers image data from a Gdk drawable and converts it to an RGB(A)
|
82
|
+
representation inside a GdkPixbuf.</p>
|
83
|
+
<p>If the drawable <em class="parameter"><code>src</code></em>
|
84
|
+
is a pixmap, then a suitable colormap must be specified,
|
85
|
+
since pixmaps are just blocks of pixel data without an associated colormap.
|
86
|
+
If the drawable is a window, the <em class="parameter"><code>cmap</code></em>
|
87
|
+
argument will be ignored and the
|
88
|
+
window's own colormap will be used instead.</p>
|
89
|
+
<p>If the specified destination pixbuf <em class="parameter"><code>dest</code></em>
|
90
|
+
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>, then this function will
|
91
|
+
create an RGB pixbuf with 8 bits per channel and no alpha, with the same size
|
92
|
+
specified by the <em class="parameter"><code>width</code></em>
|
93
|
+
and <em class="parameter"><code>height</code></em>
|
94
|
+
arguments. In this case, the <em class="parameter"><code>dest_x</code></em>
|
95
|
+
and
|
96
|
+
<em class="parameter"><code>dest_y</code></em>
|
97
|
+
arguments must be specified as 0, otherwise the function will return
|
98
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>. If the specified destination pixbuf is not NULL and it contains alpha
|
99
|
+
information, then the filled pixels will be set to full opacity.</p>
|
100
|
+
<p>If the specified drawable is a pixmap, then the requested source rectangle
|
101
|
+
must be completely contained within the pixmap, otherwise the function will
|
102
|
+
return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>.</p>
|
103
|
+
<p>If the specified drawable is a window, then it must be viewable, i.e. all of
|
104
|
+
its ancestors up to the root window must be mapped. Also, the specified
|
105
|
+
source rectangle must be completely contained within the window and within
|
106
|
+
the screen. If regions of the window are obscured by noninferior windows, the
|
107
|
+
contents of those regions are undefined. The contents of regions obscured by
|
108
|
+
inferior windows of a different depth than that of the source window will also
|
109
|
+
be undefined.</p>
|
110
|
+
<div class="refsect3">
|
111
|
+
<a name="id-1.2.19.6.2.9"></a><h4>Parameters</h4>
|
112
|
+
<div class="informaltable"><table width="100%" border="0">
|
113
|
+
<colgroup>
|
114
|
+
<col width="150px" class="parameters_name">
|
115
|
+
<col class="parameters_description">
|
116
|
+
<col width="200px" class="parameters_annotations">
|
117
|
+
</colgroup>
|
118
|
+
<tbody>
|
119
|
+
<tr>
|
120
|
+
<td class="parameter_name"><p>dest</p></td>
|
121
|
+
<td class="parameter_description"><p>Destination pixbuf, or NULL if a new pixbuf should be created.</p></td>
|
122
|
+
<td class="parameter_annotations"> </td>
|
123
|
+
</tr>
|
124
|
+
<tr>
|
125
|
+
<td class="parameter_name"><p>src</p></td>
|
126
|
+
<td class="parameter_description"><p>Source drawable.</p></td>
|
127
|
+
<td class="parameter_annotations"> </td>
|
128
|
+
</tr>
|
129
|
+
<tr>
|
130
|
+
<td class="parameter_name"><p>cmap</p></td>
|
131
|
+
<td class="parameter_description"><p>A colormap if <em class="parameter"><code>src</code></em>
|
132
|
+
is a pixmap. If it is a window, this argument will
|
133
|
+
be ignored.</p></td>
|
134
|
+
<td class="parameter_annotations"> </td>
|
135
|
+
</tr>
|
136
|
+
<tr>
|
137
|
+
<td class="parameter_name"><p>visual</p></td>
|
138
|
+
<td class="parameter_description"><p>A visual if <em class="parameter"><code>src</code></em>
|
139
|
+
is a pixmap. If it is a window, this argument will
|
140
|
+
be ignored.</p></td>
|
141
|
+
<td class="parameter_annotations"> </td>
|
142
|
+
</tr>
|
143
|
+
<tr>
|
144
|
+
<td class="parameter_name"><p>src_x</p></td>
|
145
|
+
<td class="parameter_description"><p>Source X coordinate within drawable.</p></td>
|
146
|
+
<td class="parameter_annotations"> </td>
|
147
|
+
</tr>
|
148
|
+
<tr>
|
149
|
+
<td class="parameter_name"><p>src_y</p></td>
|
150
|
+
<td class="parameter_description"><p>Source Y coordinate within drawable.</p></td>
|
151
|
+
<td class="parameter_annotations"> </td>
|
152
|
+
</tr>
|
153
|
+
<tr>
|
154
|
+
<td class="parameter_name"><p>dest_x</p></td>
|
155
|
+
<td class="parameter_description"><p>Destination X coordinate in pixbuf, or 0 if <em class="parameter"><code>dest</code></em>
|
156
|
+
is NULL.</p></td>
|
157
|
+
<td class="parameter_annotations"> </td>
|
158
|
+
</tr>
|
159
|
+
<tr>
|
160
|
+
<td class="parameter_name"><p>dest_y</p></td>
|
161
|
+
<td class="parameter_description"><p>Destination Y coordinate in pixbuf, or 0 if <em class="parameter"><code>dest</code></em>
|
162
|
+
is NULL.</p></td>
|
163
|
+
<td class="parameter_annotations"> </td>
|
164
|
+
</tr>
|
165
|
+
<tr>
|
166
|
+
<td class="parameter_name"><p>width</p></td>
|
167
|
+
<td class="parameter_description"><p>Width in pixels of region to get.</p></td>
|
168
|
+
<td class="parameter_annotations"> </td>
|
169
|
+
</tr>
|
170
|
+
<tr>
|
171
|
+
<td class="parameter_name"><p>height</p></td>
|
172
|
+
<td class="parameter_description"><p>Height in pixels of region to get.</p></td>
|
173
|
+
<td class="parameter_annotations"> </td>
|
174
|
+
</tr>
|
175
|
+
</tbody>
|
176
|
+
</table></div>
|
177
|
+
</div>
|
178
|
+
<div class="refsect3">
|
179
|
+
<a name="id-1.2.19.6.2.10"></a><h4>Returns</h4>
|
180
|
+
<p> The same pixbuf as <em class="parameter"><code>dest</code></em>
|
181
|
+
if it was non-NULL, or a newly-created
|
182
|
+
pixbuf with a reference count of 1 if no destination pixbuf was specified; in
|
183
|
+
the latter case, NULL will be returned if not enough memory could be
|
184
|
+
allocated for the pixbuf to be created.</p>
|
185
|
+
<p></p>
|
186
|
+
</div>
|
187
|
+
</div>
|
188
|
+
</div>
|
189
|
+
<div class="refsect1">
|
190
|
+
<a name="gdk-pixbuf-X-Drawables-to-Pixbufs.other_details"></a><h2>Types and Values</h2>
|
191
|
+
</div>
|
192
|
+
</div>
|
193
|
+
<div class="footer">
|
194
|
+
<hr>
|
195
|
+
Generated by GTK-Doc V1.20.1</div>
|
196
|
+
</body>
|
197
|
+
</html>
|
@@ -0,0 +1,438 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>GDK-PixBuf Reference Manual: Xlib Rendering</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
|
+
<link rel="home" href="index.html" title="GDK-PixBuf Reference Manual">
|
8
|
+
<link rel="up" href="rn01.html" title="API Reference">
|
9
|
+
<link rel="prev" href="gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html" title="gdk-pixbuf Xlib initialization">
|
10
|
+
<link rel="next" href="gdk-pixbuf-X-Drawables-to-Pixbufs.html" title="X Drawables to Pixbufs">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts">
|
17
|
+
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
+
<a href="#gdk-pixbuf-Xlib-Rendering.description" class="shortcut">Description</a></span>
|
19
|
+
</td>
|
20
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
21
|
+
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
22
|
+
<td><a accesskey="p" href="gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
23
|
+
<td><a accesskey="n" href="gdk-pixbuf-X-Drawables-to-Pixbufs.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
24
|
+
</tr></table>
|
25
|
+
<div class="refentry">
|
26
|
+
<a name="gdk-pixbuf-Xlib-Rendering"></a><div class="titlepage"></div>
|
27
|
+
<div class="refnamediv"><table width="100%"><tr>
|
28
|
+
<td valign="top">
|
29
|
+
<h2><span class="refentrytitle"><a name="gdk-pixbuf-Xlib-Rendering.top_of_page"></a>Xlib Rendering</span></h2>
|
30
|
+
<p>Xlib Rendering — Rendering a pixbuf to an X drawable.</p>
|
31
|
+
</td>
|
32
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
33
|
+
</tr></table></div>
|
34
|
+
<div class="refsect1">
|
35
|
+
<a name="gdk-pixbuf-Xlib-Rendering.functions"></a><h2>Functions</h2>
|
36
|
+
<div class="informaltable"><table width="100%" border="0">
|
37
|
+
<colgroup>
|
38
|
+
<col width="150px" class="functions_return">
|
39
|
+
<col class="functions_name">
|
40
|
+
</colgroup>
|
41
|
+
<tbody>
|
42
|
+
<tr>
|
43
|
+
<td class="function_type">
|
44
|
+
<span class="returnvalue">void</span>
|
45
|
+
</td>
|
46
|
+
<td class="function_name">
|
47
|
+
<a class="link" href="gdk-pixbuf-Xlib-Rendering.html#gdk-pixbuf-xlib-render-threshold-alpha" title="gdk_pixbuf_xlib_render_threshold_alpha ()">gdk_pixbuf_xlib_render_threshold_alpha</a> <span class="c_punctuation">()</span>
|
48
|
+
</td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<td class="function_type">
|
52
|
+
<span class="returnvalue">void</span>
|
53
|
+
</td>
|
54
|
+
<td class="function_name">
|
55
|
+
<a class="link" href="gdk-pixbuf-Xlib-Rendering.html#gdk-pixbuf-xlib-render-to-drawable" title="gdk_pixbuf_xlib_render_to_drawable ()">gdk_pixbuf_xlib_render_to_drawable</a> <span class="c_punctuation">()</span>
|
56
|
+
</td>
|
57
|
+
</tr>
|
58
|
+
<tr>
|
59
|
+
<td class="function_type">
|
60
|
+
<span class="returnvalue">void</span>
|
61
|
+
</td>
|
62
|
+
<td class="function_name">
|
63
|
+
<a class="link" href="gdk-pixbuf-Xlib-Rendering.html#gdk-pixbuf-xlib-render-to-drawable-alpha" title="gdk_pixbuf_xlib_render_to_drawable_alpha ()">gdk_pixbuf_xlib_render_to_drawable_alpha</a> <span class="c_punctuation">()</span>
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<td class="function_type">
|
68
|
+
<span class="returnvalue">void</span>
|
69
|
+
</td>
|
70
|
+
<td class="function_name">
|
71
|
+
<a class="link" href="gdk-pixbuf-Xlib-Rendering.html#gdk-pixbuf-xlib-render-pixmap-and-mask" title="gdk_pixbuf_xlib_render_pixmap_and_mask ()">gdk_pixbuf_xlib_render_pixmap_and_mask</a> <span class="c_punctuation">()</span>
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
</tbody>
|
75
|
+
</table></div>
|
76
|
+
</div>
|
77
|
+
<div class="refsect1">
|
78
|
+
<a name="gdk-pixbuf-Xlib-Rendering.includes"></a><h2>Includes</h2>
|
79
|
+
<pre class="synopsis">#include <gdk-pixbuf/gdk-pixbuf.h>
|
80
|
+
</pre>
|
81
|
+
</div>
|
82
|
+
<div class="refsect1">
|
83
|
+
<a name="gdk-pixbuf-Xlib-Rendering.description"></a><h2>Description</h2>
|
84
|
+
<p>The &gdk-pixbuf; Xlib library provides several convenience
|
85
|
+
functions to render pixbufs to X drawables. It uses XlibRGB to
|
86
|
+
render the image data.</p>
|
87
|
+
<p>These functions are analogous to those for the GDK version of
|
88
|
+
&gdk-pixbuf;.</p>
|
89
|
+
</div>
|
90
|
+
<div class="refsect1">
|
91
|
+
<a name="gdk-pixbuf-Xlib-Rendering.functions_details"></a><h2>Functions</h2>
|
92
|
+
<div class="refsect2">
|
93
|
+
<a name="gdk-pixbuf-xlib-render-threshold-alpha"></a><h3>gdk_pixbuf_xlib_render_threshold_alpha ()</h3>
|
94
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
95
|
+
gdk_pixbuf_xlib_render_threshold_alpha
|
96
|
+
(<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
97
|
+
<em class="parameter"><code><span class="type">Pixmap</span> bitmap</code></em>,
|
98
|
+
<em class="parameter"><code><span class="type">int</span> src_x</code></em>,
|
99
|
+
<em class="parameter"><code><span class="type">int</span> src_y</code></em>,
|
100
|
+
<em class="parameter"><code><span class="type">int</span> dest_x</code></em>,
|
101
|
+
<em class="parameter"><code><span class="type">int</span> dest_y</code></em>,
|
102
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
103
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
104
|
+
<em class="parameter"><code><span class="type">int</span> alpha_threshold</code></em>);</pre>
|
105
|
+
<p>Takes the opacity values in a rectangular portion of a pixbuf and thresholds
|
106
|
+
them to produce a bi-level alpha mask that can be used as a clipping mask for
|
107
|
+
a drawable.</p>
|
108
|
+
<div class="refsect3">
|
109
|
+
<a name="id-1.2.18.6.2.5"></a><h4>Parameters</h4>
|
110
|
+
<div class="informaltable"><table width="100%" border="0">
|
111
|
+
<colgroup>
|
112
|
+
<col width="150px" class="parameters_name">
|
113
|
+
<col class="parameters_description">
|
114
|
+
<col width="200px" class="parameters_annotations">
|
115
|
+
</colgroup>
|
116
|
+
<tbody>
|
117
|
+
<tr>
|
118
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
119
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
120
|
+
<td class="parameter_annotations"> </td>
|
121
|
+
</tr>
|
122
|
+
<tr>
|
123
|
+
<td class="parameter_name"><p>bitmap</p></td>
|
124
|
+
<td class="parameter_description"><p>Bitmap where the bilevel mask will be painted to.</p></td>
|
125
|
+
<td class="parameter_annotations"> </td>
|
126
|
+
</tr>
|
127
|
+
<tr>
|
128
|
+
<td class="parameter_name"><p>src_x</p></td>
|
129
|
+
<td class="parameter_description"><p>Source X coordinate.</p></td>
|
130
|
+
<td class="parameter_annotations"> </td>
|
131
|
+
</tr>
|
132
|
+
<tr>
|
133
|
+
<td class="parameter_name"><p>src_y</p></td>
|
134
|
+
<td class="parameter_description"><p>source Y coordinate.</p></td>
|
135
|
+
<td class="parameter_annotations"> </td>
|
136
|
+
</tr>
|
137
|
+
<tr>
|
138
|
+
<td class="parameter_name"><p>dest_x</p></td>
|
139
|
+
<td class="parameter_description"><p>Destination X coordinate.</p></td>
|
140
|
+
<td class="parameter_annotations"> </td>
|
141
|
+
</tr>
|
142
|
+
<tr>
|
143
|
+
<td class="parameter_name"><p>dest_y</p></td>
|
144
|
+
<td class="parameter_description"><p>Destination Y coordinate.</p></td>
|
145
|
+
<td class="parameter_annotations"> </td>
|
146
|
+
</tr>
|
147
|
+
<tr>
|
148
|
+
<td class="parameter_name"><p>width</p></td>
|
149
|
+
<td class="parameter_description"><p>Width of region to threshold.</p></td>
|
150
|
+
<td class="parameter_annotations"> </td>
|
151
|
+
</tr>
|
152
|
+
<tr>
|
153
|
+
<td class="parameter_name"><p>height</p></td>
|
154
|
+
<td class="parameter_description"><p>Height of region to threshold.</p></td>
|
155
|
+
<td class="parameter_annotations"> </td>
|
156
|
+
</tr>
|
157
|
+
<tr>
|
158
|
+
<td class="parameter_name"><p>alpha_threshold</p></td>
|
159
|
+
<td class="parameter_description"><p>Opacity values below this will be painted as zero; all
|
160
|
+
other values will be painted as one.</p></td>
|
161
|
+
<td class="parameter_annotations"> </td>
|
162
|
+
</tr>
|
163
|
+
</tbody>
|
164
|
+
</table></div>
|
165
|
+
</div>
|
166
|
+
</div>
|
167
|
+
<hr>
|
168
|
+
<div class="refsect2">
|
169
|
+
<a name="gdk-pixbuf-xlib-render-to-drawable"></a><h3>gdk_pixbuf_xlib_render_to_drawable ()</h3>
|
170
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
171
|
+
gdk_pixbuf_xlib_render_to_drawable (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
172
|
+
<em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
|
173
|
+
<em class="parameter"><code><span class="type">GC</span> gc</code></em>,
|
174
|
+
<em class="parameter"><code><span class="type">int</span> src_x</code></em>,
|
175
|
+
<em class="parameter"><code><span class="type">int</span> src_y</code></em>,
|
176
|
+
<em class="parameter"><code><span class="type">int</span> dest_x</code></em>,
|
177
|
+
<em class="parameter"><code><span class="type">int</span> dest_y</code></em>,
|
178
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
179
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
180
|
+
<em class="parameter"><code><a class="link" href="gdk-pixbuf-XlibRGB.html#XlibRgbDither" title="enum XlibRgbDither"><span class="type">XlibRgbDither</span></a> dither</code></em>,
|
181
|
+
<em class="parameter"><code><span class="type">int</span> x_dither</code></em>,
|
182
|
+
<em class="parameter"><code><span class="type">int</span> y_dither</code></em>);</pre>
|
183
|
+
<p>Renders a rectangular portion of a pixbuf to a drawable while using the
|
184
|
+
specified GC. This is done using XlibRGB, so the specified drawable must
|
185
|
+
have the XlibRGB visual and colormap. Note that this function will ignore
|
186
|
+
the opacity information for images with an alpha channel; the GC must already
|
187
|
+
have the clipping mask set if you want transparent regions to show through.</p>
|
188
|
+
<p>For an explanation of dither offsets, see the XlibRGB documentation. In
|
189
|
+
brief, the dither offset is important when re-rendering partial regions of an
|
190
|
+
image to a rendered version of the full image, or for when the offsets to a
|
191
|
+
base position change, as in scrolling. The dither matrix has to be shifted
|
192
|
+
for consistent visual results. If you do not have any of these cases, the
|
193
|
+
dither offsets can be both zero.</p>
|
194
|
+
<div class="refsect3">
|
195
|
+
<a name="id-1.2.18.6.3.6"></a><h4>Parameters</h4>
|
196
|
+
<div class="informaltable"><table width="100%" border="0">
|
197
|
+
<colgroup>
|
198
|
+
<col width="150px" class="parameters_name">
|
199
|
+
<col class="parameters_description">
|
200
|
+
<col width="200px" class="parameters_annotations">
|
201
|
+
</colgroup>
|
202
|
+
<tbody>
|
203
|
+
<tr>
|
204
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
205
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
206
|
+
<td class="parameter_annotations"> </td>
|
207
|
+
</tr>
|
208
|
+
<tr>
|
209
|
+
<td class="parameter_name"><p>drawable</p></td>
|
210
|
+
<td class="parameter_description"><p>Destination drawable.</p></td>
|
211
|
+
<td class="parameter_annotations"> </td>
|
212
|
+
</tr>
|
213
|
+
<tr>
|
214
|
+
<td class="parameter_name"><p>gc</p></td>
|
215
|
+
<td class="parameter_description"><p>GC used for rendering.</p></td>
|
216
|
+
<td class="parameter_annotations"> </td>
|
217
|
+
</tr>
|
218
|
+
<tr>
|
219
|
+
<td class="parameter_name"><p>src_x</p></td>
|
220
|
+
<td class="parameter_description"><p>Source X coordinate within pixbuf.</p></td>
|
221
|
+
<td class="parameter_annotations"> </td>
|
222
|
+
</tr>
|
223
|
+
<tr>
|
224
|
+
<td class="parameter_name"><p>src_y</p></td>
|
225
|
+
<td class="parameter_description"><p>Source Y coordinate within pixbuf.</p></td>
|
226
|
+
<td class="parameter_annotations"> </td>
|
227
|
+
</tr>
|
228
|
+
<tr>
|
229
|
+
<td class="parameter_name"><p>dest_x</p></td>
|
230
|
+
<td class="parameter_description"><p>Destination X coordinate within drawable.</p></td>
|
231
|
+
<td class="parameter_annotations"> </td>
|
232
|
+
</tr>
|
233
|
+
<tr>
|
234
|
+
<td class="parameter_name"><p>dest_y</p></td>
|
235
|
+
<td class="parameter_description"><p>Destination Y coordinate within drawable.</p></td>
|
236
|
+
<td class="parameter_annotations"> </td>
|
237
|
+
</tr>
|
238
|
+
<tr>
|
239
|
+
<td class="parameter_name"><p>width</p></td>
|
240
|
+
<td class="parameter_description"><p>Width of region to render, in pixels.</p></td>
|
241
|
+
<td class="parameter_annotations"> </td>
|
242
|
+
</tr>
|
243
|
+
<tr>
|
244
|
+
<td class="parameter_name"><p>height</p></td>
|
245
|
+
<td class="parameter_description"><p>Height of region to render, in pixels.</p></td>
|
246
|
+
<td class="parameter_annotations"> </td>
|
247
|
+
</tr>
|
248
|
+
<tr>
|
249
|
+
<td class="parameter_name"><p>dither</p></td>
|
250
|
+
<td class="parameter_description"><p>Dithering mode for XlibRGB.</p></td>
|
251
|
+
<td class="parameter_annotations"> </td>
|
252
|
+
</tr>
|
253
|
+
<tr>
|
254
|
+
<td class="parameter_name"><p>x_dither</p></td>
|
255
|
+
<td class="parameter_description"><p>X offset for dither.</p></td>
|
256
|
+
<td class="parameter_annotations"> </td>
|
257
|
+
</tr>
|
258
|
+
<tr>
|
259
|
+
<td class="parameter_name"><p>y_dither</p></td>
|
260
|
+
<td class="parameter_description"><p>Y offset for dither.</p></td>
|
261
|
+
<td class="parameter_annotations"> </td>
|
262
|
+
</tr>
|
263
|
+
</tbody>
|
264
|
+
</table></div>
|
265
|
+
</div>
|
266
|
+
</div>
|
267
|
+
<hr>
|
268
|
+
<div class="refsect2">
|
269
|
+
<a name="gdk-pixbuf-xlib-render-to-drawable-alpha"></a><h3>gdk_pixbuf_xlib_render_to_drawable_alpha ()</h3>
|
270
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
271
|
+
gdk_pixbuf_xlib_render_to_drawable_alpha
|
272
|
+
(<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
273
|
+
<em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
|
274
|
+
<em class="parameter"><code><span class="type">int</span> src_x</code></em>,
|
275
|
+
<em class="parameter"><code><span class="type">int</span> src_y</code></em>,
|
276
|
+
<em class="parameter"><code><span class="type">int</span> dest_x</code></em>,
|
277
|
+
<em class="parameter"><code><span class="type">int</span> dest_y</code></em>,
|
278
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
279
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
280
|
+
<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbufAlphaMode" title="enum GdkPixbufAlphaMode"><span class="type">GdkPixbufAlphaMode</span></a> alpha_mode</code></em>,
|
281
|
+
<em class="parameter"><code><span class="type">int</span> alpha_threshold</code></em>,
|
282
|
+
<em class="parameter"><code><a class="link" href="gdk-pixbuf-XlibRGB.html#XlibRgbDither" title="enum XlibRgbDither"><span class="type">XlibRgbDither</span></a> dither</code></em>,
|
283
|
+
<em class="parameter"><code><span class="type">int</span> x_dither</code></em>,
|
284
|
+
<em class="parameter"><code><span class="type">int</span> y_dither</code></em>);</pre>
|
285
|
+
<p>Renders a rectangular portion of a pixbuf to a drawable. This is done using
|
286
|
+
XlibRGB, so the specified drawable must have the XlibRGB visual and colormap.</p>
|
287
|
+
<p>When used with <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ALPHA-BILEVEL:CAPS"><span class="type">GDK_PIXBUF_ALPHA_BILEVEL</span></a>, this function has to create a bitmap
|
288
|
+
out of the thresholded alpha channel of the image and, it has to set this
|
289
|
+
bitmap as the clipping mask for the GC used for drawing. This can be a
|
290
|
+
significant performance penalty depending on the size and the complexity of
|
291
|
+
the alpha channel of the image. If performance is crucial, consider handling
|
292
|
+
the alpha channel yourself (possibly by caching it in your application) and
|
293
|
+
using <a class="link" href="gdk-pixbuf-Xlib-Rendering.html#gdk-pixbuf-xlib-render-to-drawable" title="gdk_pixbuf_xlib_render_to_drawable ()"><code class="function">gdk_pixbuf_xlib_render_to_drawable()</code></a> or GdkRGB directly instead.</p>
|
294
|
+
<div class="refsect3">
|
295
|
+
<a name="id-1.2.18.6.4.6"></a><h4>Parameters</h4>
|
296
|
+
<div class="informaltable"><table width="100%" border="0">
|
297
|
+
<colgroup>
|
298
|
+
<col width="150px" class="parameters_name">
|
299
|
+
<col class="parameters_description">
|
300
|
+
<col width="200px" class="parameters_annotations">
|
301
|
+
</colgroup>
|
302
|
+
<tbody>
|
303
|
+
<tr>
|
304
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
305
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
306
|
+
<td class="parameter_annotations"> </td>
|
307
|
+
</tr>
|
308
|
+
<tr>
|
309
|
+
<td class="parameter_name"><p>drawable</p></td>
|
310
|
+
<td class="parameter_description"><p>Destination drawable.</p></td>
|
311
|
+
<td class="parameter_annotations"> </td>
|
312
|
+
</tr>
|
313
|
+
<tr>
|
314
|
+
<td class="parameter_name"><p>src_x</p></td>
|
315
|
+
<td class="parameter_description"><p>Source X coordinate within pixbuf.</p></td>
|
316
|
+
<td class="parameter_annotations"> </td>
|
317
|
+
</tr>
|
318
|
+
<tr>
|
319
|
+
<td class="parameter_name"><p>src_y</p></td>
|
320
|
+
<td class="parameter_description"><p>Source Y coordinates within pixbuf.</p></td>
|
321
|
+
<td class="parameter_annotations"> </td>
|
322
|
+
</tr>
|
323
|
+
<tr>
|
324
|
+
<td class="parameter_name"><p>dest_x</p></td>
|
325
|
+
<td class="parameter_description"><p>Destination X coordinate within drawable.</p></td>
|
326
|
+
<td class="parameter_annotations"> </td>
|
327
|
+
</tr>
|
328
|
+
<tr>
|
329
|
+
<td class="parameter_name"><p>dest_y</p></td>
|
330
|
+
<td class="parameter_description"><p>Destination Y coordinate within drawable.</p></td>
|
331
|
+
<td class="parameter_annotations"> </td>
|
332
|
+
</tr>
|
333
|
+
<tr>
|
334
|
+
<td class="parameter_name"><p>width</p></td>
|
335
|
+
<td class="parameter_description"><p>Width of region to render, in pixels.</p></td>
|
336
|
+
<td class="parameter_annotations"> </td>
|
337
|
+
</tr>
|
338
|
+
<tr>
|
339
|
+
<td class="parameter_name"><p>height</p></td>
|
340
|
+
<td class="parameter_description"><p>Height of region to render, in pixels.</p></td>
|
341
|
+
<td class="parameter_annotations"> </td>
|
342
|
+
</tr>
|
343
|
+
<tr>
|
344
|
+
<td class="parameter_name"><p>alpha_mode</p></td>
|
345
|
+
<td class="parameter_description"><p>If the image does not have opacity information, this is ignored.
|
346
|
+
Otherwise, specifies how to handle transparency when rendering.</p></td>
|
347
|
+
<td class="parameter_annotations"> </td>
|
348
|
+
</tr>
|
349
|
+
<tr>
|
350
|
+
<td class="parameter_name"><p>alpha_threshold</p></td>
|
351
|
+
<td class="parameter_description"><p>If the image does have opacity information and <em class="parameter"><code>alpha_mode</code></em>
|
352
|
+
is GDK_PIXBUF_ALPHA_BILEVEL, specifies the threshold value for opacity
|
353
|
+
values.</p></td>
|
354
|
+
<td class="parameter_annotations"> </td>
|
355
|
+
</tr>
|
356
|
+
<tr>
|
357
|
+
<td class="parameter_name"><p>dither</p></td>
|
358
|
+
<td class="parameter_description"><p>Dithering mode for XlibRGB.</p></td>
|
359
|
+
<td class="parameter_annotations"> </td>
|
360
|
+
</tr>
|
361
|
+
<tr>
|
362
|
+
<td class="parameter_name"><p>x_dither</p></td>
|
363
|
+
<td class="parameter_description"><p>X offset for dither.</p></td>
|
364
|
+
<td class="parameter_annotations"> </td>
|
365
|
+
</tr>
|
366
|
+
<tr>
|
367
|
+
<td class="parameter_name"><p>y_dither</p></td>
|
368
|
+
<td class="parameter_description"><p>Y offset for dither.</p></td>
|
369
|
+
<td class="parameter_annotations"> </td>
|
370
|
+
</tr>
|
371
|
+
</tbody>
|
372
|
+
</table></div>
|
373
|
+
</div>
|
374
|
+
</div>
|
375
|
+
<hr>
|
376
|
+
<div class="refsect2">
|
377
|
+
<a name="gdk-pixbuf-xlib-render-pixmap-and-mask"></a><h3>gdk_pixbuf_xlib_render_pixmap_and_mask ()</h3>
|
378
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
379
|
+
gdk_pixbuf_xlib_render_pixmap_and_mask
|
380
|
+
(<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
381
|
+
<em class="parameter"><code><span class="type">Pixmap</span> *pixmap_return</code></em>,
|
382
|
+
<em class="parameter"><code><span class="type">Pixmap</span> *mask_return</code></em>,
|
383
|
+
<em class="parameter"><code><span class="type">int</span> alpha_threshold</code></em>);</pre>
|
384
|
+
<p>Creates a pixmap and a mask bitmap which are returned in the <em class="parameter"><code>pixmap_return</code></em>
|
385
|
+
|
386
|
+
and <em class="parameter"><code>mask_return</code></em>
|
387
|
+
arguments, respectively, and renders a pixbuf and its
|
388
|
+
corresponding tresholded alpha mask to them. This is merely a convenience
|
389
|
+
function; applications that need to render pixbufs with dither offsets or to
|
390
|
+
given drawables should use <a class="link" href="gdk-pixbuf-Xlib-Rendering.html#gdk-pixbuf-xlib-render-to-drawable-alpha" title="gdk_pixbuf_xlib_render_to_drawable_alpha ()"><code class="function">gdk_pixbuf_xlib_render_to_drawable_alpha()</code></a> or
|
391
|
+
<a class="link" href="gdk-pixbuf-Xlib-Rendering.html#gdk-pixbuf-xlib-render-to-drawable" title="gdk_pixbuf_xlib_render_to_drawable ()"><code class="function">gdk_pixbuf_xlib_render_to_drawable()</code></a>, and
|
392
|
+
<a class="link" href="gdk-pixbuf-Xlib-Rendering.html#gdk-pixbuf-xlib-render-threshold-alpha" title="gdk_pixbuf_xlib_render_threshold_alpha ()"><code class="function">gdk_pixbuf_xlib_render_threshold_alpha()</code></a>.</p>
|
393
|
+
<p>If the pixbuf does not have an alpha channel, then *<em class="parameter"><code>mask_return</code></em>
|
394
|
+
will be set
|
395
|
+
to None.</p>
|
396
|
+
<div class="refsect3">
|
397
|
+
<a name="id-1.2.18.6.5.6"></a><h4>Parameters</h4>
|
398
|
+
<div class="informaltable"><table width="100%" border="0">
|
399
|
+
<colgroup>
|
400
|
+
<col width="150px" class="parameters_name">
|
401
|
+
<col class="parameters_description">
|
402
|
+
<col width="200px" class="parameters_annotations">
|
403
|
+
</colgroup>
|
404
|
+
<tbody>
|
405
|
+
<tr>
|
406
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
407
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
408
|
+
<td class="parameter_annotations"> </td>
|
409
|
+
</tr>
|
410
|
+
<tr>
|
411
|
+
<td class="parameter_name"><p>pixmap_return</p></td>
|
412
|
+
<td class="parameter_description"><p>Return value for the created pixmap.</p></td>
|
413
|
+
<td class="parameter_annotations"> </td>
|
414
|
+
</tr>
|
415
|
+
<tr>
|
416
|
+
<td class="parameter_name"><p>mask_return</p></td>
|
417
|
+
<td class="parameter_description"><p>Return value for the created mask.</p></td>
|
418
|
+
<td class="parameter_annotations"> </td>
|
419
|
+
</tr>
|
420
|
+
<tr>
|
421
|
+
<td class="parameter_name"><p>alpha_threshold</p></td>
|
422
|
+
<td class="parameter_description"><p>Threshold value for opacity values.</p></td>
|
423
|
+
<td class="parameter_annotations"> </td>
|
424
|
+
</tr>
|
425
|
+
</tbody>
|
426
|
+
</table></div>
|
427
|
+
</div>
|
428
|
+
</div>
|
429
|
+
</div>
|
430
|
+
<div class="refsect1">
|
431
|
+
<a name="gdk-pixbuf-Xlib-Rendering.other_details"></a><h2>Types and Values</h2>
|
432
|
+
</div>
|
433
|
+
</div>
|
434
|
+
<div class="footer">
|
435
|
+
<hr>
|
436
|
+
Generated by GTK-Doc V1.20.1</div>
|
437
|
+
</body>
|
438
|
+
</html>
|