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,898 @@
|
|
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: The GdkPixbuf Structure</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-Versioning.html" title="Initialization and Versions">
|
10
|
+
<link rel="next" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html" title="Reference Counting and Memory Mangement">
|
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-The-GdkPixbuf-Structure.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span>
|
20
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span>
|
21
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.properties" class="shortcut">Properties</a></span>
|
22
|
+
</td>
|
23
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
24
|
+
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
25
|
+
<td><a accesskey="p" href="gdk-pixbuf-Versioning.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
26
|
+
<td><a accesskey="n" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
27
|
+
</tr></table>
|
28
|
+
<div class="refentry">
|
29
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure"></a><div class="titlepage"></div>
|
30
|
+
<div class="refnamediv"><table width="100%"><tr>
|
31
|
+
<td valign="top">
|
32
|
+
<h2><span class="refentrytitle"><a name="gdk-pixbuf-The-GdkPixbuf-Structure.top_of_page"></a>The GdkPixbuf Structure</span></h2>
|
33
|
+
<p>The GdkPixbuf Structure — Information that describes an image.</p>
|
34
|
+
</td>
|
35
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
36
|
+
</tr></table></div>
|
37
|
+
<div class="refsect1">
|
38
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.functions"></a><h2>Functions</h2>
|
39
|
+
<div class="informaltable"><table width="100%" border="0">
|
40
|
+
<colgroup>
|
41
|
+
<col width="150px" class="functions_return">
|
42
|
+
<col class="functions_name">
|
43
|
+
</colgroup>
|
44
|
+
<tbody>
|
45
|
+
<tr>
|
46
|
+
<td class="function_type">
|
47
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="returnvalue">GdkColorspace</span></a>
|
48
|
+
</td>
|
49
|
+
<td class="function_name">
|
50
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-colorspace" title="gdk_pixbuf_get_colorspace ()">gdk_pixbuf_get_colorspace</a> <span class="c_punctuation">()</span>
|
51
|
+
</td>
|
52
|
+
</tr>
|
53
|
+
<tr>
|
54
|
+
<td class="function_type">
|
55
|
+
<span class="returnvalue">int</span>
|
56
|
+
</td>
|
57
|
+
<td class="function_name">
|
58
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-n-channels" title="gdk_pixbuf_get_n_channels ()">gdk_pixbuf_get_n_channels</a> <span class="c_punctuation">()</span>
|
59
|
+
</td>
|
60
|
+
</tr>
|
61
|
+
<tr>
|
62
|
+
<td class="function_type">
|
63
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
64
|
+
</td>
|
65
|
+
<td class="function_name">
|
66
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-has-alpha" title="gdk_pixbuf_get_has_alpha ()">gdk_pixbuf_get_has_alpha</a> <span class="c_punctuation">()</span>
|
67
|
+
</td>
|
68
|
+
</tr>
|
69
|
+
<tr>
|
70
|
+
<td class="function_type">
|
71
|
+
<span class="returnvalue">int</span>
|
72
|
+
</td>
|
73
|
+
<td class="function_name">
|
74
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-bits-per-sample" title="gdk_pixbuf_get_bits_per_sample ()">gdk_pixbuf_get_bits_per_sample</a> <span class="c_punctuation">()</span>
|
75
|
+
</td>
|
76
|
+
</tr>
|
77
|
+
<tr>
|
78
|
+
<td class="function_type">
|
79
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
80
|
+
</td>
|
81
|
+
<td class="function_name">
|
82
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-pixels" title="gdk_pixbuf_get_pixels ()">gdk_pixbuf_get_pixels</a> <span class="c_punctuation">()</span>
|
83
|
+
</td>
|
84
|
+
</tr>
|
85
|
+
<tr>
|
86
|
+
<td class="function_type">
|
87
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
88
|
+
</td>
|
89
|
+
<td class="function_name">
|
90
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-pixels-with-length" title="gdk_pixbuf_get_pixels_with_length ()">gdk_pixbuf_get_pixels_with_length</a> <span class="c_punctuation">()</span>
|
91
|
+
</td>
|
92
|
+
</tr>
|
93
|
+
<tr>
|
94
|
+
<td class="function_type">
|
95
|
+
<span class="returnvalue">int</span>
|
96
|
+
</td>
|
97
|
+
<td class="function_name">
|
98
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-width" title="gdk_pixbuf_get_width ()">gdk_pixbuf_get_width</a> <span class="c_punctuation">()</span>
|
99
|
+
</td>
|
100
|
+
</tr>
|
101
|
+
<tr>
|
102
|
+
<td class="function_type">
|
103
|
+
<span class="returnvalue">int</span>
|
104
|
+
</td>
|
105
|
+
<td class="function_name">
|
106
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-height" title="gdk_pixbuf_get_height ()">gdk_pixbuf_get_height</a> <span class="c_punctuation">()</span>
|
107
|
+
</td>
|
108
|
+
</tr>
|
109
|
+
<tr>
|
110
|
+
<td class="function_type">
|
111
|
+
<span class="returnvalue">int</span>
|
112
|
+
</td>
|
113
|
+
<td class="function_name">
|
114
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-rowstride" title="gdk_pixbuf_get_rowstride ()">gdk_pixbuf_get_rowstride</a> <span class="c_punctuation">()</span>
|
115
|
+
</td>
|
116
|
+
</tr>
|
117
|
+
<tr>
|
118
|
+
<td class="function_type">
|
119
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
|
120
|
+
</td>
|
121
|
+
<td class="function_name">
|
122
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-byte-length" title="gdk_pixbuf_get_byte_length ()">gdk_pixbuf_get_byte_length</a> <span class="c_punctuation">()</span>
|
123
|
+
</td>
|
124
|
+
</tr>
|
125
|
+
<tr>
|
126
|
+
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
127
|
+
</td>
|
128
|
+
<td class="function_name">
|
129
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-option" title="gdk_pixbuf_get_option ()">gdk_pixbuf_get_option</a> <span class="c_punctuation">()</span>
|
130
|
+
</td>
|
131
|
+
</tr>
|
132
|
+
</tbody>
|
133
|
+
</table></div>
|
134
|
+
</div>
|
135
|
+
<div class="refsect1">
|
136
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.properties"></a><h2>Properties</h2>
|
137
|
+
<div class="informaltable"><table border="0">
|
138
|
+
<colgroup>
|
139
|
+
<col width="150px" class="properties_type">
|
140
|
+
<col width="300px" class="properties_name">
|
141
|
+
<col width="200px" class="properties_flags">
|
142
|
+
</colgroup>
|
143
|
+
<tbody>
|
144
|
+
<tr>
|
145
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
146
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--bits-per-sample" title="The “bits-per-sample” property">bits-per-sample</a></td>
|
147
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
148
|
+
</tr>
|
149
|
+
<tr>
|
150
|
+
<td class="property_type"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a></td>
|
151
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--colorspace" title="The “colorspace” property">colorspace</a></td>
|
152
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
153
|
+
</tr>
|
154
|
+
<tr>
|
155
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
156
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--has-alpha" title="The “has-alpha” property">has-alpha</a></td>
|
157
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
158
|
+
</tr>
|
159
|
+
<tr>
|
160
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
161
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--height" title="The “height” property">height</a></td>
|
162
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
163
|
+
</tr>
|
164
|
+
<tr>
|
165
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
166
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--n-channels" title="The “n-channels” property">n-channels</a></td>
|
167
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
168
|
+
</tr>
|
169
|
+
<tr>
|
170
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></td>
|
171
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--pixels" title="The “pixels” property">pixels</a></td>
|
172
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
173
|
+
</tr>
|
174
|
+
<tr>
|
175
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
176
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--rowstride" title="The “rowstride” property">rowstride</a></td>
|
177
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
178
|
+
</tr>
|
179
|
+
<tr>
|
180
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
181
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--width" title="The “width” property">width</a></td>
|
182
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
183
|
+
</tr>
|
184
|
+
</tbody>
|
185
|
+
</table></div>
|
186
|
+
</div>
|
187
|
+
<a name="GdkPixbuf"></a><div class="refsect1">
|
188
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.other"></a><h2>Types and Values</h2>
|
189
|
+
<div class="informaltable"><table width="100%" border="0">
|
190
|
+
<colgroup>
|
191
|
+
<col width="150px" class="name">
|
192
|
+
<col class="description">
|
193
|
+
</colgroup>
|
194
|
+
<tbody>
|
195
|
+
<tr>
|
196
|
+
<td class="datatype_keyword">enum</td>
|
197
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbufError" title="enum GdkPixbufError">GdkPixbufError</a></td>
|
198
|
+
</tr>
|
199
|
+
<tr>
|
200
|
+
<td class="define_keyword">#define</td>
|
201
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR">GDK_PIXBUF_ERROR</a></td>
|
202
|
+
</tr>
|
203
|
+
<tr>
|
204
|
+
<td class="datatype_keyword">enum</td>
|
205
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace">GdkColorspace</a></td>
|
206
|
+
</tr>
|
207
|
+
<tr>
|
208
|
+
<td class="datatype_keyword">enum</td>
|
209
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbufAlphaMode" title="enum GdkPixbufAlphaMode">GdkPixbufAlphaMode</a></td>
|
210
|
+
</tr>
|
211
|
+
<tr>
|
212
|
+
<td class="datatype_keyword"> </td>
|
213
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct" title="GdkPixbuf">GdkPixbuf</a></td>
|
214
|
+
</tr>
|
215
|
+
</tbody>
|
216
|
+
</table></div>
|
217
|
+
</div>
|
218
|
+
<div class="refsect1">
|
219
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
220
|
+
<pre class="screen"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
221
|
+
<span class="lineart">╰──</span> GdkPixbuf
|
222
|
+
</pre>
|
223
|
+
</div>
|
224
|
+
<div class="refsect1">
|
225
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
226
|
+
<p>
|
227
|
+
GdkPixbuf implements
|
228
|
+
<a href="http://library.gnome.org/devel/gio/unstable/GIcon.html">GIcon</a> and <a href="http://library.gnome.org/devel/gio/unstable/GLoadableIcon.html">GLoadableIcon</a>.</p>
|
229
|
+
</div>
|
230
|
+
<div class="refsect1">
|
231
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.includes"></a><h2>Includes</h2>
|
232
|
+
<pre class="synopsis">#include <gdk-pixbuf/gdk-pixbuf.h>
|
233
|
+
</pre>
|
234
|
+
</div>
|
235
|
+
<div class="refsect1">
|
236
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.description"></a><h2>Description</h2>
|
237
|
+
<p>The <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structure contains
|
238
|
+
information that describes an image in memory.</p>
|
239
|
+
<div class="refsect3">
|
240
|
+
<a name="image-data"></a><h4>Image Data</h4>
|
241
|
+
<p>Image data in a pixbuf is stored in memory in uncompressed,
|
242
|
+
packed format. Rows in the image are stored top to bottom, and
|
243
|
+
in each row pixels are stored from left to right. There may be
|
244
|
+
padding at the end of a row. The "rowstride" value of a pixbuf,
|
245
|
+
as returned by <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-rowstride" title="gdk_pixbuf_get_rowstride ()"><code class="function">gdk_pixbuf_get_rowstride()</code></a>, indicates the number
|
246
|
+
of bytes between rows.</p>
|
247
|
+
</div>
|
248
|
+
<div class="refsect3">
|
249
|
+
<a name="put-pixel"></a><h4>put_pixel() Example</h4>
|
250
|
+
<p>The following code illustrates a simple <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#put-pixel" title="put_pixel() Example"><code class="function">put_pixel()</code></a>
|
251
|
+
function for RGB pixbufs with 8 bits per channel with an alpha
|
252
|
+
channel. It is not included in the gdk-pixbuf library for
|
253
|
+
performance reasons; rather than making several function calls
|
254
|
+
for each pixel, your own code can take shortcuts.</p>
|
255
|
+
<div class="informalexample">
|
256
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
257
|
+
<tbody>
|
258
|
+
<tr>
|
259
|
+
<td class="listing_lines" align="right"><pre>1
|
260
|
+
2
|
261
|
+
3
|
262
|
+
4
|
263
|
+
5
|
264
|
+
6
|
265
|
+
7
|
266
|
+
8
|
267
|
+
9
|
268
|
+
10
|
269
|
+
11
|
270
|
+
12
|
271
|
+
13
|
272
|
+
14
|
273
|
+
15
|
274
|
+
16
|
275
|
+
17
|
276
|
+
18
|
277
|
+
19
|
278
|
+
20
|
279
|
+
21
|
280
|
+
22
|
281
|
+
23
|
282
|
+
24
|
283
|
+
25
|
284
|
+
26
|
285
|
+
27
|
286
|
+
28</pre></td>
|
287
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
288
|
+
<span class="function">put_pixel</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GdkPixbuf</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> </span><span class="type">int</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> </span><span class="type">int</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">guchar</span><span class="normal"> red</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">guchar</span><span class="normal"> green</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">guchar</span><span class="normal"> blue</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">guchar</span><span class="normal"> alpha</span><span class="symbol">)</span>
|
289
|
+
<span class="cbracket">{</span>
|
290
|
+
<span class="normal"> </span><span class="type">int</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">,</span><span class="normal"> rowstride</span><span class="symbol">,</span><span class="normal"> n_channels</span><span class="symbol">;</span>
|
291
|
+
<span class="normal"> </span><span class="usertype">guchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pixels</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">p</span><span class="symbol">;</span>
|
292
|
+
|
293
|
+
<span class="normal"> n_channels </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-n-channels">gdk_pixbuf_get_n_channels</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
294
|
+
|
295
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-colorspace">gdk_pixbuf_get_colorspace</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> GDK_COLORSPACE_RGB</span><span class="symbol">);</span>
|
296
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-bits-per-sample">gdk_pixbuf_get_bits_per_sample</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">8</span><span class="symbol">);</span>
|
297
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-has-alpha">gdk_pixbuf_get_has_alpha</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">));</span>
|
298
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">n_channels </span><span class="symbol">==</span><span class="normal"> </span><span class="number">4</span><span class="symbol">);</span>
|
299
|
+
|
300
|
+
<span class="normal"> width </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-width">gdk_pixbuf_get_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
301
|
+
<span class="normal"> height </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-height">gdk_pixbuf_get_height</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
302
|
+
|
303
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">x </span><span class="symbol">>=</span><span class="normal"> </span><span class="number">0</span><span class="normal"> </span><span class="symbol">&&</span><span class="normal"> x </span><span class="symbol"><</span><span class="normal"> width</span><span class="symbol">);</span>
|
304
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">y </span><span class="symbol">>=</span><span class="normal"> </span><span class="number">0</span><span class="normal"> </span><span class="symbol">&&</span><span class="normal"> y </span><span class="symbol"><</span><span class="normal"> height</span><span class="symbol">);</span>
|
305
|
+
|
306
|
+
<span class="normal"> rowstride </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-rowstride">gdk_pixbuf_get_rowstride</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
307
|
+
<span class="normal"> pixels </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-pixels">gdk_pixbuf_get_pixels</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
308
|
+
|
309
|
+
<span class="normal"> p </span><span class="symbol">=</span><span class="normal"> pixels </span><span class="symbol">+</span><span class="normal"> y </span><span class="symbol">*</span><span class="normal"> rowstride </span><span class="symbol">+</span><span class="normal"> x </span><span class="symbol">*</span><span class="normal"> n_channels</span><span class="symbol">;</span>
|
310
|
+
<span class="normal"> p</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> red</span><span class="symbol">;</span>
|
311
|
+
<span class="normal"> p</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> green</span><span class="symbol">;</span>
|
312
|
+
<span class="normal"> p</span><span class="symbol">[</span><span class="number">2</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> blue</span><span class="symbol">;</span>
|
313
|
+
<span class="normal"> p</span><span class="symbol">[</span><span class="number">3</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> alpha</span><span class="symbol">;</span>
|
314
|
+
<span class="cbracket">}</span></pre></td>
|
315
|
+
</tr>
|
316
|
+
</tbody>
|
317
|
+
</table>
|
318
|
+
</div>
|
319
|
+
|
320
|
+
<p></p>
|
321
|
+
<p>This function will not work for pixbufs with images that are
|
322
|
+
other than 8 bits per sample or channel, but it will work for
|
323
|
+
most of the pixbufs that GTK+ uses.</p>
|
324
|
+
<p>If you are doing <code class="function">memcpy()</code> of raw pixbuf data, note that the last row
|
325
|
+
in the pixbuf may not be as wide as the full rowstride, but rather
|
326
|
+
just as wide as the pixel data needs to be. That is, it is unsafe to
|
327
|
+
do <code class="literal">memcpy (dest, pixels, rowstride * height)</code> to copy a whole pixbuf.
|
328
|
+
Use <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-copy" title="gdk_pixbuf_copy ()"><code class="function">gdk_pixbuf_copy()</code></a> instead, or compute the width in bytes of the
|
329
|
+
last row as <code class="literal">width * ((n_channels * bits_per_sample + 7) / 8)</code>.</p>
|
330
|
+
</div>
|
331
|
+
</div>
|
332
|
+
<div class="refsect1">
|
333
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.functions_details"></a><h2>Functions</h2>
|
334
|
+
<div class="refsect2">
|
335
|
+
<a name="gdk-pixbuf-get-colorspace"></a><h3>gdk_pixbuf_get_colorspace ()</h3>
|
336
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="returnvalue">GdkColorspace</span></a>
|
337
|
+
gdk_pixbuf_get_colorspace (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
338
|
+
<p>Queries the color space of a pixbuf.</p>
|
339
|
+
<div class="refsect3">
|
340
|
+
<a name="id-1.2.4.11.2.5"></a><h4>Parameters</h4>
|
341
|
+
<div class="informaltable"><table width="100%" border="0">
|
342
|
+
<colgroup>
|
343
|
+
<col width="150px" class="parameters_name">
|
344
|
+
<col class="parameters_description">
|
345
|
+
<col width="200px" class="parameters_annotations">
|
346
|
+
</colgroup>
|
347
|
+
<tbody><tr>
|
348
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
349
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
350
|
+
<td class="parameter_annotations"> </td>
|
351
|
+
</tr></tbody>
|
352
|
+
</table></div>
|
353
|
+
</div>
|
354
|
+
<div class="refsect3">
|
355
|
+
<a name="id-1.2.4.11.2.6"></a><h4>Returns</h4>
|
356
|
+
<p> Color space.</p>
|
357
|
+
<p></p>
|
358
|
+
</div>
|
359
|
+
</div>
|
360
|
+
<hr>
|
361
|
+
<div class="refsect2">
|
362
|
+
<a name="gdk-pixbuf-get-n-channels"></a><h3>gdk_pixbuf_get_n_channels ()</h3>
|
363
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
364
|
+
gdk_pixbuf_get_n_channels (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
365
|
+
<p>Queries the number of channels of a pixbuf.</p>
|
366
|
+
<div class="refsect3">
|
367
|
+
<a name="id-1.2.4.11.3.5"></a><h4>Parameters</h4>
|
368
|
+
<div class="informaltable"><table width="100%" border="0">
|
369
|
+
<colgroup>
|
370
|
+
<col width="150px" class="parameters_name">
|
371
|
+
<col class="parameters_description">
|
372
|
+
<col width="200px" class="parameters_annotations">
|
373
|
+
</colgroup>
|
374
|
+
<tbody><tr>
|
375
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
376
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
377
|
+
<td class="parameter_annotations"> </td>
|
378
|
+
</tr></tbody>
|
379
|
+
</table></div>
|
380
|
+
</div>
|
381
|
+
<div class="refsect3">
|
382
|
+
<a name="id-1.2.4.11.3.6"></a><h4>Returns</h4>
|
383
|
+
<p> Number of channels.</p>
|
384
|
+
<p></p>
|
385
|
+
</div>
|
386
|
+
</div>
|
387
|
+
<hr>
|
388
|
+
<div class="refsect2">
|
389
|
+
<a name="gdk-pixbuf-get-has-alpha"></a><h3>gdk_pixbuf_get_has_alpha ()</h3>
|
390
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
391
|
+
gdk_pixbuf_get_has_alpha (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
392
|
+
<p>Queries whether a pixbuf has an alpha channel (opacity information).</p>
|
393
|
+
<div class="refsect3">
|
394
|
+
<a name="id-1.2.4.11.4.5"></a><h4>Parameters</h4>
|
395
|
+
<div class="informaltable"><table width="100%" border="0">
|
396
|
+
<colgroup>
|
397
|
+
<col width="150px" class="parameters_name">
|
398
|
+
<col class="parameters_description">
|
399
|
+
<col width="200px" class="parameters_annotations">
|
400
|
+
</colgroup>
|
401
|
+
<tbody><tr>
|
402
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
403
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
404
|
+
<td class="parameter_annotations"> </td>
|
405
|
+
</tr></tbody>
|
406
|
+
</table></div>
|
407
|
+
</div>
|
408
|
+
<div class="refsect3">
|
409
|
+
<a name="id-1.2.4.11.4.6"></a><h4>Returns</h4>
|
410
|
+
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if it has an alpha channel, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
411
|
+
<p></p>
|
412
|
+
</div>
|
413
|
+
</div>
|
414
|
+
<hr>
|
415
|
+
<div class="refsect2">
|
416
|
+
<a name="gdk-pixbuf-get-bits-per-sample"></a><h3>gdk_pixbuf_get_bits_per_sample ()</h3>
|
417
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
418
|
+
gdk_pixbuf_get_bits_per_sample (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
419
|
+
<p>Queries the number of bits per color sample in a pixbuf.</p>
|
420
|
+
<div class="refsect3">
|
421
|
+
<a name="id-1.2.4.11.5.5"></a><h4>Parameters</h4>
|
422
|
+
<div class="informaltable"><table width="100%" border="0">
|
423
|
+
<colgroup>
|
424
|
+
<col width="150px" class="parameters_name">
|
425
|
+
<col class="parameters_description">
|
426
|
+
<col width="200px" class="parameters_annotations">
|
427
|
+
</colgroup>
|
428
|
+
<tbody><tr>
|
429
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
430
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
431
|
+
<td class="parameter_annotations"> </td>
|
432
|
+
</tr></tbody>
|
433
|
+
</table></div>
|
434
|
+
</div>
|
435
|
+
<div class="refsect3">
|
436
|
+
<a name="id-1.2.4.11.5.6"></a><h4>Returns</h4>
|
437
|
+
<p> Number of bits per color sample.</p>
|
438
|
+
<p></p>
|
439
|
+
</div>
|
440
|
+
</div>
|
441
|
+
<hr>
|
442
|
+
<div class="refsect2">
|
443
|
+
<a name="gdk-pixbuf-get-pixels"></a><h3>gdk_pixbuf_get_pixels ()</h3>
|
444
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
445
|
+
gdk_pixbuf_get_pixels (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
446
|
+
<p>Queries a pointer to the pixel data of a pixbuf.</p>
|
447
|
+
<div class="refsect3">
|
448
|
+
<a name="id-1.2.4.11.6.5"></a><h4>Parameters</h4>
|
449
|
+
<div class="informaltable"><table width="100%" border="0">
|
450
|
+
<colgroup>
|
451
|
+
<col width="150px" class="parameters_name">
|
452
|
+
<col class="parameters_description">
|
453
|
+
<col width="200px" class="parameters_annotations">
|
454
|
+
</colgroup>
|
455
|
+
<tbody><tr>
|
456
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
457
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
458
|
+
<td class="parameter_annotations"> </td>
|
459
|
+
</tr></tbody>
|
460
|
+
</table></div>
|
461
|
+
</div>
|
462
|
+
<div class="refsect3">
|
463
|
+
<a name="id-1.2.4.11.6.6"></a><h4>Returns</h4>
|
464
|
+
<p> A pointer to the pixbuf's pixel data.
|
465
|
+
Please see the section on <a class="ulink" href="image-data" target="_top">image data</a> for information
|
466
|
+
about how the pixel data is stored in memory. </p>
|
467
|
+
<p><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym>]</span></p>
|
468
|
+
</div>
|
469
|
+
</div>
|
470
|
+
<hr>
|
471
|
+
<div class="refsect2">
|
472
|
+
<a name="gdk-pixbuf-get-pixels-with-length"></a><h3>gdk_pixbuf_get_pixels_with_length ()</h3>
|
473
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
474
|
+
gdk_pixbuf_get_pixels_with_length (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
475
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *length</code></em>);</pre>
|
476
|
+
<p>Queries a pointer to the pixel data of a pixbuf.</p>
|
477
|
+
<div class="refsect3">
|
478
|
+
<a name="id-1.2.4.11.7.5"></a><h4>Parameters</h4>
|
479
|
+
<div class="informaltable"><table width="100%" border="0">
|
480
|
+
<colgroup>
|
481
|
+
<col width="150px" class="parameters_name">
|
482
|
+
<col class="parameters_description">
|
483
|
+
<col width="200px" class="parameters_annotations">
|
484
|
+
</colgroup>
|
485
|
+
<tbody>
|
486
|
+
<tr>
|
487
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
488
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
489
|
+
<td class="parameter_annotations"> </td>
|
490
|
+
</tr>
|
491
|
+
<tr>
|
492
|
+
<td class="parameter_name"><p>length</p></td>
|
493
|
+
<td class="parameter_description"><p> The length of the binary data. </p></td>
|
494
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
495
|
+
</tr>
|
496
|
+
</tbody>
|
497
|
+
</table></div>
|
498
|
+
</div>
|
499
|
+
<div class="refsect3">
|
500
|
+
<a name="id-1.2.4.11.7.6"></a><h4>Returns</h4>
|
501
|
+
<p> A pointer to the pixbuf's
|
502
|
+
pixel data. Please see the section on <a class="ulink" href="image-data" target="_top">image data</a>
|
503
|
+
for information about how the pixel data is stored in memory.</p>
|
504
|
+
<p>Rename to: gdk_pixbuf_get_pixels. </p>
|
505
|
+
<p><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=length]</span></p>
|
506
|
+
</div>
|
507
|
+
<p class="since">Since 2.26</p>
|
508
|
+
</div>
|
509
|
+
<hr>
|
510
|
+
<div class="refsect2">
|
511
|
+
<a name="gdk-pixbuf-get-width"></a><h3>gdk_pixbuf_get_width ()</h3>
|
512
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
513
|
+
gdk_pixbuf_get_width (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
514
|
+
<p>Queries the width of a pixbuf.</p>
|
515
|
+
<div class="refsect3">
|
516
|
+
<a name="id-1.2.4.11.8.5"></a><h4>Parameters</h4>
|
517
|
+
<div class="informaltable"><table width="100%" border="0">
|
518
|
+
<colgroup>
|
519
|
+
<col width="150px" class="parameters_name">
|
520
|
+
<col class="parameters_description">
|
521
|
+
<col width="200px" class="parameters_annotations">
|
522
|
+
</colgroup>
|
523
|
+
<tbody><tr>
|
524
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
525
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
526
|
+
<td class="parameter_annotations"> </td>
|
527
|
+
</tr></tbody>
|
528
|
+
</table></div>
|
529
|
+
</div>
|
530
|
+
<div class="refsect3">
|
531
|
+
<a name="id-1.2.4.11.8.6"></a><h4>Returns</h4>
|
532
|
+
<p> Width in pixels.</p>
|
533
|
+
<p></p>
|
534
|
+
</div>
|
535
|
+
</div>
|
536
|
+
<hr>
|
537
|
+
<div class="refsect2">
|
538
|
+
<a name="gdk-pixbuf-get-height"></a><h3>gdk_pixbuf_get_height ()</h3>
|
539
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
540
|
+
gdk_pixbuf_get_height (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
541
|
+
<p>Queries the height of a pixbuf.</p>
|
542
|
+
<div class="refsect3">
|
543
|
+
<a name="id-1.2.4.11.9.5"></a><h4>Parameters</h4>
|
544
|
+
<div class="informaltable"><table width="100%" border="0">
|
545
|
+
<colgroup>
|
546
|
+
<col width="150px" class="parameters_name">
|
547
|
+
<col class="parameters_description">
|
548
|
+
<col width="200px" class="parameters_annotations">
|
549
|
+
</colgroup>
|
550
|
+
<tbody><tr>
|
551
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
552
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
553
|
+
<td class="parameter_annotations"> </td>
|
554
|
+
</tr></tbody>
|
555
|
+
</table></div>
|
556
|
+
</div>
|
557
|
+
<div class="refsect3">
|
558
|
+
<a name="id-1.2.4.11.9.6"></a><h4>Returns</h4>
|
559
|
+
<p> Height in pixels.</p>
|
560
|
+
<p></p>
|
561
|
+
</div>
|
562
|
+
</div>
|
563
|
+
<hr>
|
564
|
+
<div class="refsect2">
|
565
|
+
<a name="gdk-pixbuf-get-rowstride"></a><h3>gdk_pixbuf_get_rowstride ()</h3>
|
566
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
567
|
+
gdk_pixbuf_get_rowstride (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
568
|
+
<p>Queries the rowstride of a pixbuf, which is the number of bytes between
|
569
|
+
the start of a row and the start of the next row.</p>
|
570
|
+
<div class="refsect3">
|
571
|
+
<a name="id-1.2.4.11.10.5"></a><h4>Parameters</h4>
|
572
|
+
<div class="informaltable"><table width="100%" border="0">
|
573
|
+
<colgroup>
|
574
|
+
<col width="150px" class="parameters_name">
|
575
|
+
<col class="parameters_description">
|
576
|
+
<col width="200px" class="parameters_annotations">
|
577
|
+
</colgroup>
|
578
|
+
<tbody><tr>
|
579
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
580
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
581
|
+
<td class="parameter_annotations"> </td>
|
582
|
+
</tr></tbody>
|
583
|
+
</table></div>
|
584
|
+
</div>
|
585
|
+
<div class="refsect3">
|
586
|
+
<a name="id-1.2.4.11.10.6"></a><h4>Returns</h4>
|
587
|
+
<p> Distance between row starts.</p>
|
588
|
+
<p></p>
|
589
|
+
</div>
|
590
|
+
</div>
|
591
|
+
<hr>
|
592
|
+
<div class="refsect2">
|
593
|
+
<a name="gdk-pixbuf-get-byte-length"></a><h3>gdk_pixbuf_get_byte_length ()</h3>
|
594
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
|
595
|
+
gdk_pixbuf_get_byte_length (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
596
|
+
<p>Returns the length of the pixel data, in bytes.</p>
|
597
|
+
<div class="refsect3">
|
598
|
+
<a name="id-1.2.4.11.11.5"></a><h4>Parameters</h4>
|
599
|
+
<div class="informaltable"><table width="100%" border="0">
|
600
|
+
<colgroup>
|
601
|
+
<col width="150px" class="parameters_name">
|
602
|
+
<col class="parameters_description">
|
603
|
+
<col width="200px" class="parameters_annotations">
|
604
|
+
</colgroup>
|
605
|
+
<tbody><tr>
|
606
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
607
|
+
<td class="parameter_description"><p>A pixbuf</p></td>
|
608
|
+
<td class="parameter_annotations"> </td>
|
609
|
+
</tr></tbody>
|
610
|
+
</table></div>
|
611
|
+
</div>
|
612
|
+
<div class="refsect3">
|
613
|
+
<a name="id-1.2.4.11.11.6"></a><h4>Returns</h4>
|
614
|
+
<p> The length of the pixel data.</p>
|
615
|
+
<p></p>
|
616
|
+
</div>
|
617
|
+
<p class="since">Since 2.26</p>
|
618
|
+
</div>
|
619
|
+
<hr>
|
620
|
+
<div class="refsect2">
|
621
|
+
<a name="gdk-pixbuf-get-option"></a><h3>gdk_pixbuf_get_option ()</h3>
|
622
|
+
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
623
|
+
gdk_pixbuf_get_option (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
624
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>);</pre>
|
625
|
+
<p>Looks up <em class="parameter"><code>key</code></em>
|
626
|
+
in the list of options that may have been attached to the
|
627
|
+
<em class="parameter"><code>pixbuf</code></em>
|
628
|
+
when it was loaded, or that may have been attached by another
|
629
|
+
function using <a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-set-option" title="gdk_pixbuf_set_option ()"><code class="function">gdk_pixbuf_set_option()</code></a>.</p>
|
630
|
+
<p>For instance, the ANI loader provides "Title" and "Artist" options.
|
631
|
+
The ICO, XBM, and XPM loaders provide "x_hot" and "y_hot" hot-spot
|
632
|
+
options for cursor definitions. The PNG loader provides the tEXt ancillary
|
633
|
+
chunk key/value pairs as options. Since 2.12, the TIFF and JPEG loaders
|
634
|
+
return an "orientation" option string that corresponds to the embedded
|
635
|
+
TIFF/Exif orientation tag (if present).</p>
|
636
|
+
<div class="refsect3">
|
637
|
+
<a name="id-1.2.4.11.12.6"></a><h4>Parameters</h4>
|
638
|
+
<div class="informaltable"><table width="100%" border="0">
|
639
|
+
<colgroup>
|
640
|
+
<col width="150px" class="parameters_name">
|
641
|
+
<col class="parameters_description">
|
642
|
+
<col width="200px" class="parameters_annotations">
|
643
|
+
</colgroup>
|
644
|
+
<tbody>
|
645
|
+
<tr>
|
646
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
647
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a></p></td>
|
648
|
+
<td class="parameter_annotations"> </td>
|
649
|
+
</tr>
|
650
|
+
<tr>
|
651
|
+
<td class="parameter_name"><p>key</p></td>
|
652
|
+
<td class="parameter_description"><p>a nul-terminated string.</p></td>
|
653
|
+
<td class="parameter_annotations"> </td>
|
654
|
+
</tr>
|
655
|
+
</tbody>
|
656
|
+
</table></div>
|
657
|
+
</div>
|
658
|
+
<div class="refsect3">
|
659
|
+
<a name="id-1.2.4.11.12.7"></a><h4>Returns</h4>
|
660
|
+
<p> the value associated with <em class="parameter"><code>key</code></em>
|
661
|
+
. This is a nul-terminated
|
662
|
+
string that should not be freed or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>key</code></em>
|
663
|
+
was not found.</p>
|
664
|
+
<p></p>
|
665
|
+
</div>
|
666
|
+
</div>
|
667
|
+
</div>
|
668
|
+
<div class="refsect1">
|
669
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.other_details"></a><h2>Types and Values</h2>
|
670
|
+
<div class="refsect2">
|
671
|
+
<a name="GdkPixbufError"></a><h3>enum GdkPixbufError</h3>
|
672
|
+
<p>An error code in the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a> domain. Many gdk-pixbuf
|
673
|
+
operations can cause errors in this domain, or in the <a href="http://library.gnome.org/devel/glib/unstable/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a>
|
674
|
+
domain.</p>
|
675
|
+
<div class="refsect3">
|
676
|
+
<a name="id-1.2.4.12.2.4"></a><h4>Members</h4>
|
677
|
+
<div class="informaltable"><table width="100%" border="0">
|
678
|
+
<colgroup>
|
679
|
+
<col width="300px" class="enum_members_name">
|
680
|
+
<col class="enum_members_description">
|
681
|
+
<col width="200px" class="enum_members_annotations">
|
682
|
+
</colgroup>
|
683
|
+
<tbody>
|
684
|
+
<tr>
|
685
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-CORRUPT-IMAGE:CAPS"></a>GDK_PIXBUF_ERROR_CORRUPT_IMAGE</p></td>
|
686
|
+
<td class="enum_member_description">
|
687
|
+
<p>An image file was broken somehow.</p>
|
688
|
+
</td>
|
689
|
+
<td class="enum_member_annotations"> </td>
|
690
|
+
</tr>
|
691
|
+
<tr>
|
692
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-INSUFFICIENT-MEMORY:CAPS"></a>GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY</p></td>
|
693
|
+
<td class="enum_member_description">
|
694
|
+
<p>Not enough memory.</p>
|
695
|
+
</td>
|
696
|
+
<td class="enum_member_annotations"> </td>
|
697
|
+
</tr>
|
698
|
+
<tr>
|
699
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-BAD-OPTION:CAPS"></a>GDK_PIXBUF_ERROR_BAD_OPTION</p></td>
|
700
|
+
<td class="enum_member_description">
|
701
|
+
<p>A bad option was passed to a pixbuf save module.</p>
|
702
|
+
</td>
|
703
|
+
<td class="enum_member_annotations"> </td>
|
704
|
+
</tr>
|
705
|
+
<tr>
|
706
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-UNKNOWN-TYPE:CAPS"></a>GDK_PIXBUF_ERROR_UNKNOWN_TYPE</p></td>
|
707
|
+
<td class="enum_member_description">
|
708
|
+
<p>Unknown image type.</p>
|
709
|
+
</td>
|
710
|
+
<td class="enum_member_annotations"> </td>
|
711
|
+
</tr>
|
712
|
+
<tr>
|
713
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-UNSUPPORTED-OPERATION:CAPS"></a>GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION</p></td>
|
714
|
+
<td class="enum_member_description">
|
715
|
+
<p>Don't know how to perform the
|
716
|
+
given operation on the type of image at hand.</p>
|
717
|
+
</td>
|
718
|
+
<td class="enum_member_annotations"> </td>
|
719
|
+
</tr>
|
720
|
+
<tr>
|
721
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-FAILED:CAPS"></a>GDK_PIXBUF_ERROR_FAILED</p></td>
|
722
|
+
<td class="enum_member_description">
|
723
|
+
<p>Generic failure code, something went wrong.</p>
|
724
|
+
</td>
|
725
|
+
<td class="enum_member_annotations"> </td>
|
726
|
+
</tr>
|
727
|
+
</tbody>
|
728
|
+
</table></div>
|
729
|
+
</div>
|
730
|
+
</div>
|
731
|
+
<hr>
|
732
|
+
<div class="refsect2">
|
733
|
+
<a name="GDK-PIXBUF-ERROR:CAPS"></a><h3>GDK_PIXBUF_ERROR</h3>
|
734
|
+
<pre class="programlisting">#define GDK_PIXBUF_ERROR gdk_pixbuf_error_quark ()
|
735
|
+
</pre>
|
736
|
+
<p>Error domain used for pixbuf operations. Indicates that the error code
|
737
|
+
will be in the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbufError" title="enum GdkPixbufError"><span class="type">GdkPixbufError</span></a> enumeration. See <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for
|
738
|
+
information on error domains and error codes.</p>
|
739
|
+
</div>
|
740
|
+
<hr>
|
741
|
+
<div class="refsect2">
|
742
|
+
<a name="GdkColorspace"></a><h3>enum GdkColorspace</h3>
|
743
|
+
<p>This enumeration defines the color spaces that are supported by
|
744
|
+
the gdk-pixbuf library. Currently only RGB is supported.</p>
|
745
|
+
<div class="refsect3">
|
746
|
+
<a name="id-1.2.4.12.4.4"></a><h4>Members</h4>
|
747
|
+
<div class="informaltable"><table width="100%" border="0">
|
748
|
+
<colgroup>
|
749
|
+
<col width="300px" class="enum_members_name">
|
750
|
+
<col class="enum_members_description">
|
751
|
+
<col width="200px" class="enum_members_annotations">
|
752
|
+
</colgroup>
|
753
|
+
<tbody><tr>
|
754
|
+
<td class="enum_member_name"><p><a name="GDK-COLORSPACE-RGB:CAPS"></a>GDK_COLORSPACE_RGB</p></td>
|
755
|
+
<td class="enum_member_description">
|
756
|
+
<p>Indicates a red/green/blue additive color space.</p>
|
757
|
+
</td>
|
758
|
+
<td class="enum_member_annotations"> </td>
|
759
|
+
</tr></tbody>
|
760
|
+
</table></div>
|
761
|
+
</div>
|
762
|
+
</div>
|
763
|
+
<hr>
|
764
|
+
<div class="refsect2">
|
765
|
+
<a name="GdkPixbufAlphaMode"></a><h3>enum GdkPixbufAlphaMode</h3>
|
766
|
+
<p>These values can be passed to
|
767
|
+
<a href="http://library.gnome.org/devel/gdk3/gdk2-Pixbufs.html#gdk-pixbuf-render-to-drawable-alpha"><code class="function">gdk_pixbuf_render_to_drawable_alpha()</code></a> to control how the alpha
|
768
|
+
channel of an image should be handled. This function can create a
|
769
|
+
bilevel clipping mask (black and white) and use it while painting
|
770
|
+
the image. In the future, when the X Window System gets an alpha
|
771
|
+
channel extension, it will be possible to do full alpha
|
772
|
+
compositing onto arbitrary drawables. For now both cases fall
|
773
|
+
back to a bilevel clipping mask.</p>
|
774
|
+
<div class="refsect3">
|
775
|
+
<a name="id-1.2.4.12.5.4"></a><h4>Members</h4>
|
776
|
+
<div class="informaltable"><table width="100%" border="0">
|
777
|
+
<colgroup>
|
778
|
+
<col width="300px" class="enum_members_name">
|
779
|
+
<col class="enum_members_description">
|
780
|
+
<col width="200px" class="enum_members_annotations">
|
781
|
+
</colgroup>
|
782
|
+
<tbody>
|
783
|
+
<tr>
|
784
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ALPHA-BILEVEL:CAPS"></a>GDK_PIXBUF_ALPHA_BILEVEL</p></td>
|
785
|
+
<td class="enum_member_description">
|
786
|
+
<p>A bilevel clipping mask (black and white)
|
787
|
+
will be created and used to draw the image. Pixels below 0.5 opacity
|
788
|
+
will be considered fully transparent, and all others will be
|
789
|
+
considered fully opaque.</p>
|
790
|
+
</td>
|
791
|
+
<td class="enum_member_annotations"> </td>
|
792
|
+
</tr>
|
793
|
+
<tr>
|
794
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ALPHA-FULL:CAPS"></a>GDK_PIXBUF_ALPHA_FULL</p></td>
|
795
|
+
<td class="enum_member_description">
|
796
|
+
<p>For now falls back to <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ALPHA-BILEVEL:CAPS"><span class="type">GDK_PIXBUF_ALPHA_BILEVEL</span></a>.
|
797
|
+
In the future it will do full alpha compositing.</p>
|
798
|
+
</td>
|
799
|
+
<td class="enum_member_annotations"> </td>
|
800
|
+
</tr>
|
801
|
+
</tbody>
|
802
|
+
</table></div>
|
803
|
+
</div>
|
804
|
+
</div>
|
805
|
+
<hr>
|
806
|
+
<div class="refsect2">
|
807
|
+
<a name="GdkPixbuf-struct"></a><h3>GdkPixbuf</h3>
|
808
|
+
<pre class="programlisting">typedef struct _GdkPixbuf GdkPixbuf;</pre>
|
809
|
+
<p>This is the main structure in the gdk-pixbuf library. It is
|
810
|
+
used to represent images. It contains information about the
|
811
|
+
image's pixel data, its color space, bits per sample, width and
|
812
|
+
height, and the rowstride (the number of bytes between the start of
|
813
|
+
one row and the start of the next).</p>
|
814
|
+
</div>
|
815
|
+
</div>
|
816
|
+
<div class="refsect1">
|
817
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.property-details"></a><h2>Property Details</h2>
|
818
|
+
<div class="refsect2">
|
819
|
+
<a name="GdkPixbuf--bits-per-sample"></a><h3>The <code class="literal">“bits-per-sample”</code> property</h3>
|
820
|
+
<pre class="programlisting"> “bits-per-sample” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
821
|
+
<p>The number of bits per sample.
|
822
|
+
|
823
|
+
Currently only 8 bit per sample are supported.</p>
|
824
|
+
<p>Flags: Read / Write / Construct Only</p>
|
825
|
+
<p>Allowed values: [1,16]</p>
|
826
|
+
<p>Default value: 8</p>
|
827
|
+
</div>
|
828
|
+
<hr>
|
829
|
+
<div class="refsect2">
|
830
|
+
<a name="GdkPixbuf--colorspace"></a><h3>The <code class="literal">“colorspace”</code> property</h3>
|
831
|
+
<pre class="programlisting"> “colorspace” <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a></pre>
|
832
|
+
<p>The colorspace in which the samples are interpreted.</p>
|
833
|
+
<p>Flags: Read / Write / Construct Only</p>
|
834
|
+
<p>Default value: GDK_COLORSPACE_RGB</p>
|
835
|
+
</div>
|
836
|
+
<hr>
|
837
|
+
<div class="refsect2">
|
838
|
+
<a name="GdkPixbuf--has-alpha"></a><h3>The <code class="literal">“has-alpha”</code> property</h3>
|
839
|
+
<pre class="programlisting"> “has-alpha” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
840
|
+
<p>Whether the pixbuf has an alpha channel.</p>
|
841
|
+
<p>Flags: Read / Write / Construct Only</p>
|
842
|
+
<p>Default value: FALSE</p>
|
843
|
+
</div>
|
844
|
+
<hr>
|
845
|
+
<div class="refsect2">
|
846
|
+
<a name="GdkPixbuf--height"></a><h3>The <code class="literal">“height”</code> property</h3>
|
847
|
+
<pre class="programlisting"> “height” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
848
|
+
<p>The number of rows of the pixbuf.</p>
|
849
|
+
<p>Flags: Read / Write / Construct Only</p>
|
850
|
+
<p>Allowed values: >= 1</p>
|
851
|
+
<p>Default value: 1</p>
|
852
|
+
</div>
|
853
|
+
<hr>
|
854
|
+
<div class="refsect2">
|
855
|
+
<a name="GdkPixbuf--n-channels"></a><h3>The <code class="literal">“n-channels”</code> property</h3>
|
856
|
+
<pre class="programlisting"> “n-channels” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
857
|
+
<p>The number of samples per pixel.
|
858
|
+
|
859
|
+
Currently, only 3 or 4 samples per pixel are supported.</p>
|
860
|
+
<p>Flags: Read / Write / Construct Only</p>
|
861
|
+
<p>Allowed values: >= 0</p>
|
862
|
+
<p>Default value: 3</p>
|
863
|
+
</div>
|
864
|
+
<hr>
|
865
|
+
<div class="refsect2">
|
866
|
+
<a name="GdkPixbuf--pixels"></a><h3>The <code class="literal">“pixels”</code> property</h3>
|
867
|
+
<pre class="programlisting"> “pixels” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></pre>
|
868
|
+
<p>A pointer to the pixel data of the pixbuf.</p>
|
869
|
+
<p>Flags: Read / Write / Construct Only</p>
|
870
|
+
</div>
|
871
|
+
<hr>
|
872
|
+
<div class="refsect2">
|
873
|
+
<a name="GdkPixbuf--rowstride"></a><h3>The <code class="literal">“rowstride”</code> property</h3>
|
874
|
+
<pre class="programlisting"> “rowstride” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
875
|
+
<p>The number of bytes between the start of a row and
|
876
|
+
|
877
|
+
the start of the next row. This number must (obviously)
|
878
|
+
be at least as large as the width of the pixbuf.</p>
|
879
|
+
<p>Flags: Read / Write / Construct Only</p>
|
880
|
+
<p>Allowed values: >= 1</p>
|
881
|
+
<p>Default value: 1</p>
|
882
|
+
</div>
|
883
|
+
<hr>
|
884
|
+
<div class="refsect2">
|
885
|
+
<a name="GdkPixbuf--width"></a><h3>The <code class="literal">“width”</code> property</h3>
|
886
|
+
<pre class="programlisting"> “width” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
887
|
+
<p>The number of columns of the pixbuf.</p>
|
888
|
+
<p>Flags: Read / Write / Construct Only</p>
|
889
|
+
<p>Allowed values: >= 1</p>
|
890
|
+
<p>Default value: 1</p>
|
891
|
+
</div>
|
892
|
+
</div>
|
893
|
+
</div>
|
894
|
+
<div class="footer">
|
895
|
+
<hr>
|
896
|
+
Generated by GTK-Doc V1.20.1</div>
|
897
|
+
</body>
|
898
|
+
</html>
|