rsvg2 2.2.3-x86-mingw32 → 2.2.4-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -2
- data/ext/rsvg2/extconf.rb +2 -15
- data/ext/rsvg2/rbrsvghandle.c +46 -25
- data/ext/rsvg2/rsvg2.h +4 -2
- data/lib/2.0/rsvg2.so +0 -0
- data/lib/2.1/rsvg2.so +0 -0
- data/lib/2.2/rsvg2.so +0 -0
- data/test/rsvg2-test-utils.rb +23 -0
- data/test/run-test.rb +49 -0
- data/test/test-handle.rb +91 -0
- data/vendor/local/bin/croco-0.6-config +3 -3
- data/vendor/local/bin/csslint-0.6.exe +0 -0
- data/vendor/local/bin/libcroco-0.6-3.dll +0 -0
- data/vendor/local/bin/librsvg-2-2.dll +0 -0
- data/vendor/local/bin/rsvg-convert.exe +0 -0
- data/vendor/local/include/librsvg-2.0/librsvg/librsvg-features.h +2 -2
- data/vendor/local/include/librsvg-2.0/librsvg/rsvg.h +31 -10
- data/vendor/local/lib/girepository-1.0/Rsvg-2.0.typelib +0 -0
- data/vendor/local/lib/libcroco-0.6.a +0 -0
- data/vendor/local/lib/libcroco-0.6.dll.a +0 -0
- data/vendor/local/lib/libcroco-0.6.la +2 -2
- data/vendor/local/lib/librsvg-2.a +0 -0
- data/vendor/local/lib/librsvg-2.dll.a +0 -0
- data/vendor/local/lib/librsvg-2.la +3 -3
- data/vendor/local/lib/pkgconfig/libcroco-0.6.pc +1 -1
- data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +2 -2
- data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +75 -42
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +1046 -699
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +26 -26
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +16 -19
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +13 -16
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +14 -17
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +15 -20
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +12 -15
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +17 -22
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +18 -23
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +31 -36
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +80 -85
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.html +4 -4
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +30 -25
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/licence.html +9 -9
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +15 -15
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +55 -57
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +253 -176
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +337 -239
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +96 -68
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +83 -50
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +9 -9
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +314 -104
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
- metadata +11 -4
@@ -2,30 +2,26 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Using RSVG with GdkPixbuf</title>
|
5
|
+
<title>RSVG Libary Reference Manual: Using RSVG with GdkPixbuf</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="RSVG Libary Reference Manual">
|
8
8
|
<link rel="up" href="rsvg.html" title="Part I. API Reference">
|
9
9
|
<link rel="prev" href="rsvg-Using-RSVG-with-cairo.html" title="Using RSVG with cairo">
|
10
10
|
<link rel="next" href="rsvg-Version-check-and-feature-tests.html" title="Version check and feature tests">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.21 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
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="
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<
|
19
|
-
|
20
|
-
<
|
21
|
-
<td><a accesskey="
|
22
|
-
|
23
|
-
<
|
24
|
-
|
25
|
-
|
|
26
|
-
<a href="#rsvg-Using-RSVG-with-GdkPixbuf.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
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="#rsvg-Using-RSVG-with-GdkPixbuf.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="rsvg.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
22
|
+
<td><a accesskey="p" href="rsvg-Using-RSVG-with-cairo.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
23
|
+
<td><a accesskey="n" href="rsvg-Version-check-and-feature-tests.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
24
|
+
</tr></table>
|
29
25
|
<div class="refentry">
|
30
26
|
<a name="rsvg-Using-RSVG-with-GdkPixbuf"></a><div class="titlepage"></div>
|
31
27
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -34,353 +30,455 @@
|
|
34
30
|
<p>Using RSVG with GdkPixbuf — How to render SVGs into GdkPixbufs, for easy use in GTK+
|
35
31
|
applications</p>
|
36
32
|
</td>
|
37
|
-
<td valign="top" align="right"></td>
|
33
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
38
34
|
</tr></table></div>
|
39
|
-
<div class="refsynopsisdiv">
|
40
|
-
<a name="rsvg-Using-RSVG-with-GdkPixbuf.synopsis"></a><h2>Synopsis</h2>
|
41
|
-
<pre class="synopsis"><span class="returnvalue">GdkPixbuf</span> * <a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-handle-get-pixbuf" title="rsvg_handle_get_pixbuf ()">rsvg_handle_get_pixbuf</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);
|
42
|
-
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-handle-get-pixbuf-sub" title="rsvg_handle_get_pixbuf_sub ()">rsvg_handle_get_pixbuf_sub</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
43
|
-
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);
|
44
|
-
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-pixbuf-from-file" title="rsvg_pixbuf_from_file ()">rsvg_pixbuf_from_file</a> (<em class="parameter"><code>const <span class="type">gchar</span> *file_name</code></em>,
|
45
|
-
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
|
46
|
-
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-pixbuf-from-file-at-zoom" title="rsvg_pixbuf_from_file_at_zoom ()">rsvg_pixbuf_from_file_at_zoom</a> (<em class="parameter"><code>const <span class="type">gchar</span> *file_name</code></em>,
|
47
|
-
<em class="parameter"><code><span class="type">double</span> x_zoom</code></em>,
|
48
|
-
<em class="parameter"><code><span class="type">double</span> y_zoom</code></em>,
|
49
|
-
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
|
50
|
-
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-pixbuf-from-file-at-size" title="rsvg_pixbuf_from_file_at_size ()">rsvg_pixbuf_from_file_at_size</a> (<em class="parameter"><code>const <span class="type">gchar</span> *file_name</code></em>,
|
51
|
-
<em class="parameter"><code><span class="type">gint</span> width</code></em>,
|
52
|
-
<em class="parameter"><code><span class="type">gint</span> height</code></em>,
|
53
|
-
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
|
54
|
-
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-pixbuf-from-file-at-max-size" title="rsvg_pixbuf_from_file_at_max_size ()">rsvg_pixbuf_from_file_at_max_size</a> (<em class="parameter"><code>const <span class="type">gchar</span> *file_name</code></em>,
|
55
|
-
<em class="parameter"><code><span class="type">gint</span> max_width</code></em>,
|
56
|
-
<em class="parameter"><code><span class="type">gint</span> max_height</code></em>,
|
57
|
-
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
|
58
|
-
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-pixbuf-from-file-at-zoom-with-max" title="rsvg_pixbuf_from_file_at_zoom_with_max ()">rsvg_pixbuf_from_file_at_zoom_with_max</a>
|
59
|
-
(<em class="parameter"><code>const <span class="type">gchar</span> *file_name</code></em>,
|
60
|
-
<em class="parameter"><code><span class="type">double</span> x_zoom</code></em>,
|
61
|
-
<em class="parameter"><code><span class="type">double</span> y_zoom</code></em>,
|
62
|
-
<em class="parameter"><code><span class="type">gint</span> max_width</code></em>,
|
63
|
-
<em class="parameter"><code><span class="type">gint</span> max_height</code></em>,
|
64
|
-
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
|
65
|
-
</pre>
|
66
|
-
</div>
|
67
|
-
<div class="refsect1">
|
68
|
-
<a name="rsvg-Using-RSVG-with-GdkPixbuf.description"></a><h2>Description</h2>
|
69
|
-
<p>
|
70
|
-
GdkPixbuf is a library for image loading and manipulation. It is part of the
|
71
|
-
cross-platform GTK+ widget toolkit.
|
72
|
-
</p>
|
73
|
-
</div>
|
74
35
|
<div class="refsect1">
|
75
|
-
<a name="rsvg-Using-RSVG-with-GdkPixbuf.
|
76
|
-
<div class="
|
77
|
-
<a name="rsvg-handle-get-pixbuf"></a><h3>rsvg_handle_get_pixbuf ()</h3>
|
78
|
-
<pre class="programlisting"><span class="returnvalue">GdkPixbuf</span> * rsvg_handle_get_pixbuf (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
|
79
|
-
<p>
|
80
|
-
Returns the pixbuf loaded by <span class="type">handle</span>. The pixbuf returned will be reffed, so
|
81
|
-
the caller of this function must assume that ref. If insufficient data has
|
82
|
-
been read to create the pixbuf, or an error occurred in loading, then <code class="literal">NULL</code>
|
83
|
-
will be returned. Note that the pixbuf may not be complete until
|
84
|
-
<em class="parameter"><code>rsvg_handle_close</code></em> has been called.
|
85
|
-
</p>
|
86
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
36
|
+
<a name="rsvg-Using-RSVG-with-GdkPixbuf.functions"></a><h2>Functions</h2>
|
37
|
+
<div class="informaltable"><table width="100%" border="0">
|
87
38
|
<colgroup>
|
88
|
-
<col
|
89
|
-
<col>
|
39
|
+
<col width="150px" class="functions_return">
|
40
|
+
<col class="functions_name">
|
90
41
|
</colgroup>
|
91
42
|
<tbody>
|
92
43
|
<tr>
|
93
|
-
<td
|
94
|
-
<
|
44
|
+
<td class="function_type">
|
45
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
46
|
+
</td>
|
47
|
+
<td class="function_name">
|
48
|
+
<a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-handle-get-pixbuf" title="rsvg_handle_get_pixbuf ()">rsvg_handle_get_pixbuf</a> <span class="c_punctuation">()</span>
|
49
|
+
</td>
|
50
|
+
</tr>
|
51
|
+
<tr>
|
52
|
+
<td class="function_type">
|
53
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
54
|
+
</td>
|
55
|
+
<td class="function_name">
|
56
|
+
<a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-handle-get-pixbuf-sub" title="rsvg_handle_get_pixbuf_sub ()">rsvg_handle_get_pixbuf_sub</a> <span class="c_punctuation">()</span>
|
57
|
+
</td>
|
58
|
+
</tr>
|
59
|
+
<tr>
|
60
|
+
<td class="function_type">
|
61
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
62
|
+
</td>
|
63
|
+
<td class="function_name">
|
64
|
+
<a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-pixbuf-from-file" title="rsvg_pixbuf_from_file ()">rsvg_pixbuf_from_file</a> <span class="c_punctuation">()</span>
|
95
65
|
</td>
|
96
66
|
</tr>
|
97
67
|
<tr>
|
98
|
-
<td
|
99
|
-
<
|
68
|
+
<td class="function_type">
|
69
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
70
|
+
</td>
|
71
|
+
<td class="function_name">
|
72
|
+
<a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-pixbuf-from-file-at-zoom" title="rsvg_pixbuf_from_file_at_zoom ()">rsvg_pixbuf_from_file_at_zoom</a> <span class="c_punctuation">()</span>
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
<tr>
|
76
|
+
<td class="function_type">
|
77
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
78
|
+
</td>
|
79
|
+
<td class="function_name">
|
80
|
+
<a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-pixbuf-from-file-at-size" title="rsvg_pixbuf_from_file_at_size ()">rsvg_pixbuf_from_file_at_size</a> <span class="c_punctuation">()</span>
|
81
|
+
</td>
|
82
|
+
</tr>
|
83
|
+
<tr>
|
84
|
+
<td class="function_type">
|
85
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
86
|
+
</td>
|
87
|
+
<td class="function_name">
|
88
|
+
<a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-pixbuf-from-file-at-max-size" title="rsvg_pixbuf_from_file_at_max_size ()">rsvg_pixbuf_from_file_at_max_size</a> <span class="c_punctuation">()</span>
|
89
|
+
</td>
|
90
|
+
</tr>
|
91
|
+
<tr>
|
92
|
+
<td class="function_type">
|
93
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
94
|
+
</td>
|
95
|
+
<td class="function_name">
|
96
|
+
<a class="link" href="rsvg-Using-RSVG-with-GdkPixbuf.html#rsvg-pixbuf-from-file-at-zoom-with-max" title="rsvg_pixbuf_from_file_at_zoom_with_max ()">rsvg_pixbuf_from_file_at_zoom_with_max</a> <span class="c_punctuation">()</span>
|
100
97
|
</td>
|
101
98
|
</tr>
|
102
99
|
</tbody>
|
103
100
|
</table></div>
|
104
101
|
</div>
|
102
|
+
<div class="refsect1">
|
103
|
+
<a name="rsvg-Using-RSVG-with-GdkPixbuf.description"></a><h2>Description</h2>
|
104
|
+
<p>GdkPixbuf is a library for image loading and manipulation. It is part of the
|
105
|
+
cross-platform GTK+ widget toolkit.</p>
|
106
|
+
</div>
|
107
|
+
<div class="refsect1">
|
108
|
+
<a name="rsvg-Using-RSVG-with-GdkPixbuf.functions_details"></a><h2>Functions</h2>
|
109
|
+
<div class="refsect2">
|
110
|
+
<a name="rsvg-handle-get-pixbuf"></a><h3>rsvg_handle_get_pixbuf ()</h3>
|
111
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
112
|
+
rsvg_handle_get_pixbuf (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre>
|
113
|
+
<p>Returns the pixbuf loaded by <em class="parameter"><code>handle</code></em>
|
114
|
+
. The pixbuf returned will be reffed, so
|
115
|
+
the caller of this function must assume that ref. If insufficient data has
|
116
|
+
been read to create the pixbuf, or an error occurred in loading, then <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
117
|
+
will be returned. Note that the pixbuf may not be complete until
|
118
|
+
<em class="parameter"><code>rsvg_handle_close</code></em>
|
119
|
+
has been called.</p>
|
120
|
+
<div class="refsect3">
|
121
|
+
<a name="id-1.2.6.5.2.5"></a><h4>Parameters</h4>
|
122
|
+
<div class="informaltable"><table width="100%" border="0">
|
123
|
+
<colgroup>
|
124
|
+
<col width="150px" class="parameters_name">
|
125
|
+
<col class="parameters_description">
|
126
|
+
<col width="200px" class="parameters_annotations">
|
127
|
+
</colgroup>
|
128
|
+
<tbody><tr>
|
129
|
+
<td class="parameter_name"><p>handle</p></td>
|
130
|
+
<td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
|
131
|
+
<td class="parameter_annotations"> </td>
|
132
|
+
</tr></tbody>
|
133
|
+
</table></div>
|
134
|
+
</div>
|
135
|
+
<div class="refsect3">
|
136
|
+
<a name="id-1.2.6.5.2.6"></a><h4>Returns</h4>
|
137
|
+
<p> the pixbuf loaded by <em class="parameter"><code>handle</code></em>
|
138
|
+
, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
|
139
|
+
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
140
|
+
</div>
|
141
|
+
</div>
|
105
142
|
<hr>
|
106
143
|
<div class="refsect2">
|
107
|
-
<a name="rsvg-handle-get-pixbuf-sub"></a><h3>rsvg_handle_get_pixbuf_sub
|
108
|
-
<pre class="programlisting"><
|
109
|
-
|
110
|
-
<
|
111
|
-
Returns the pixbuf loaded by <
|
144
|
+
<a name="rsvg-handle-get-pixbuf-sub"></a><h3>rsvg_handle_get_pixbuf_sub ()</h3>
|
145
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
146
|
+
rsvg_handle_get_pixbuf_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>,
|
147
|
+
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
|
148
|
+
<p>Returns the pixbuf loaded by <em class="parameter"><code>handle</code></em>
|
149
|
+
. The pixbuf returned will be reffed, so
|
112
150
|
the caller of this function must assume that ref. If insufficient data has
|
113
|
-
been read to create the pixbuf, or an error occurred in loading, then <code class="literal">NULL</code>
|
151
|
+
been read to create the pixbuf, or an error occurred in loading, then <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
114
152
|
will be returned. Note that the pixbuf may not be complete until
|
115
|
-
<em class="parameter"><code>rsvg_handle_close</code></em>
|
116
|
-
|
117
|
-
<div class="
|
153
|
+
<em class="parameter"><code>rsvg_handle_close</code></em>
|
154
|
+
has been called.</p>
|
155
|
+
<div class="refsect3">
|
156
|
+
<a name="id-1.2.6.5.3.5"></a><h4>Parameters</h4>
|
157
|
+
<div class="informaltable"><table width="100%" border="0">
|
118
158
|
<colgroup>
|
119
|
-
<col
|
120
|
-
<col>
|
159
|
+
<col width="150px" class="parameters_name">
|
160
|
+
<col class="parameters_description">
|
161
|
+
<col width="200px" class="parameters_annotations">
|
121
162
|
</colgroup>
|
122
163
|
<tbody>
|
123
164
|
<tr>
|
124
|
-
<td
|
125
|
-
<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
126
|
-
</td>
|
165
|
+
<td class="parameter_name"><p>handle</p></td>
|
166
|
+
<td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td>
|
167
|
+
<td class="parameter_annotations"> </td>
|
127
168
|
</tr>
|
128
169
|
<tr>
|
129
|
-
<td
|
130
|
-
<td>The id of an element inside the SVG, or <code class="literal">NULL</code> to
|
131
|
-
example, if you have a layer called
|
132
|
-
"#<span class="type">layer1</span>" as the id
|
133
|
-
</
|
134
|
-
<tr>
|
135
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
136
|
-
<td>the pixbuf loaded by <span class="type">handle</span>, or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
|
137
|
-
</td>
|
170
|
+
<td class="parameter_name"><p>id</p></td>
|
171
|
+
<td class="parameter_description"><p> The id of an element inside the SVG, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to
|
172
|
+
render the whole SVG. For example, if you have a layer called
|
173
|
+
"layer1" that you wish to render, pass "#<span class="type">layer1</span>" as the id. </p></td>
|
174
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
|
138
175
|
</tr>
|
139
176
|
</tbody>
|
140
177
|
</table></div>
|
178
|
+
</div>
|
179
|
+
<div class="refsect3">
|
180
|
+
<a name="id-1.2.6.5.3.6"></a><h4>Returns</h4>
|
181
|
+
<p> the pixbuf loaded by <em class="parameter"><code>handle</code></em>
|
182
|
+
, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
|
183
|
+
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
184
|
+
</div>
|
141
185
|
<p class="since">Since 2.14</p>
|
142
186
|
</div>
|
143
187
|
<hr>
|
144
188
|
<div class="refsect2">
|
145
|
-
<a name="rsvg-pixbuf-from-file"></a><h3>rsvg_pixbuf_from_file
|
146
|
-
<pre class="programlisting"><
|
147
|
-
|
148
|
-
<
|
149
|
-
<
|
150
|
-
<p><code class="literal">rsvg_pixbuf_from_file</code> is deprecated and should not be used in newly-written code
|
189
|
+
<a name="rsvg-pixbuf-from-file"></a><h3>rsvg_pixbuf_from_file ()</h3>
|
190
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
191
|
+
rsvg_pixbuf_from_file (<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
192
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
193
|
+
<div class="warning">
|
194
|
+
<p><code class="literal">rsvg_pixbuf_from_file</code> is deprecated and should not be used in newly-written code.</p>
|
195
|
+
<p>Set up a cairo matrix and use <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()"><code class="function">rsvg_handle_new_from_file()</code></a> + <a class="link" href="rsvg-Using-RSVG-with-cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
|
151
196
|
</div>
|
152
|
-
<p>
|
153
|
-
|
154
|
-
assume the reference to the reurned pixbuf. If an error occurred, <em class="parameter"><code>error</code></em>
|
155
|
-
|
156
|
-
</p>
|
157
|
-
<div class="
|
197
|
+
<p>Loads a new <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> from <em class="parameter"><code>file_name</code></em>
|
198
|
+
and returns it. The caller must
|
199
|
+
assume the reference to the reurned pixbuf. If an error occurred, <em class="parameter"><code>error</code></em>
|
200
|
+
is
|
201
|
+
set and <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
202
|
+
<div class="refsect3">
|
203
|
+
<a name="id-1.2.6.5.4.6"></a><h4>Parameters</h4>
|
204
|
+
<div class="informaltable"><table width="100%" border="0">
|
158
205
|
<colgroup>
|
159
|
-
<col
|
160
|
-
<col>
|
206
|
+
<col width="150px" class="parameters_name">
|
207
|
+
<col class="parameters_description">
|
208
|
+
<col width="200px" class="parameters_annotations">
|
161
209
|
</colgroup>
|
162
210
|
<tbody>
|
163
211
|
<tr>
|
164
|
-
<td
|
165
|
-
<td>A file name</td>
|
212
|
+
<td class="parameter_name"><p>file_name</p></td>
|
213
|
+
<td class="parameter_description"><p>A file name</p></td>
|
214
|
+
<td class="parameter_annotations"> </td>
|
166
215
|
</tr>
|
167
216
|
<tr>
|
168
|
-
<td
|
169
|
-
<td>return location for errors</td>
|
170
|
-
</
|
171
|
-
<tr>
|
172
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
173
|
-
<td>A newly allocated <span class="type">GdkPixbuf</span>, or <code class="literal">NULL</code>
|
174
|
-
</td>
|
217
|
+
<td class="parameter_name"><p>error</p></td>
|
218
|
+
<td class="parameter_description"><p>return location for errors</p></td>
|
219
|
+
<td class="parameter_annotations"> </td>
|
175
220
|
</tr>
|
176
221
|
</tbody>
|
177
222
|
</table></div>
|
178
223
|
</div>
|
224
|
+
<div class="refsect3">
|
225
|
+
<a name="id-1.2.6.5.4.7"></a><h4>Returns</h4>
|
226
|
+
<p> A newly allocated <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p>
|
227
|
+
<p></p>
|
228
|
+
</div>
|
229
|
+
</div>
|
179
230
|
<hr>
|
180
231
|
<div class="refsect2">
|
181
|
-
<a name="rsvg-pixbuf-from-file-at-zoom"></a><h3>rsvg_pixbuf_from_file_at_zoom
|
182
|
-
<pre class="programlisting"><
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
<
|
187
|
-
<
|
188
|
-
<p><code class="literal">rsvg_pixbuf_from_file_at_zoom</code> is deprecated and should not be used in newly-written code
|
232
|
+
<a name="rsvg-pixbuf-from-file-at-zoom"></a><h3>rsvg_pixbuf_from_file_at_zoom ()</h3>
|
233
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
234
|
+
rsvg_pixbuf_from_file_at_zoom (<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
235
|
+
<em class="parameter"><code><span class="type">double</span> x_zoom</code></em>,
|
236
|
+
<em class="parameter"><code><span class="type">double</span> y_zoom</code></em>,
|
237
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
238
|
+
<div class="warning">
|
239
|
+
<p><code class="literal">rsvg_pixbuf_from_file_at_zoom</code> is deprecated and should not be used in newly-written code.</p>
|
240
|
+
<p>Set up a cairo matrix and use <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()"><code class="function">rsvg_handle_new_from_file()</code></a> + <a class="link" href="rsvg-Using-RSVG-with-cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
|
189
241
|
</div>
|
190
|
-
<p>
|
191
|
-
|
192
|
-
from the size indicated by the file by a factor of <em class="parameter"><code>x_zoom</code></em>
|
242
|
+
<p>Loads a new <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> from <em class="parameter"><code>file_name</code></em>
|
243
|
+
and returns it. This pixbuf is scaled
|
244
|
+
from the size indicated by the file by a factor of <em class="parameter"><code>x_zoom</code></em>
|
245
|
+
and <em class="parameter"><code>y_zoom</code></em>
|
246
|
+
. The
|
193
247
|
caller must assume the reference to the returned pixbuf. If an error
|
194
|
-
occurred, <em class="parameter"><code>error</code></em>
|
195
|
-
</p>
|
196
|
-
<div class="
|
248
|
+
occurred, <em class="parameter"><code>error</code></em>
|
249
|
+
is set and <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
250
|
+
<div class="refsect3">
|
251
|
+
<a name="id-1.2.6.5.5.6"></a><h4>Parameters</h4>
|
252
|
+
<div class="informaltable"><table width="100%" border="0">
|
197
253
|
<colgroup>
|
198
|
-
<col
|
199
|
-
<col>
|
254
|
+
<col width="150px" class="parameters_name">
|
255
|
+
<col class="parameters_description">
|
256
|
+
<col width="200px" class="parameters_annotations">
|
200
257
|
</colgroup>
|
201
258
|
<tbody>
|
202
259
|
<tr>
|
203
|
-
<td
|
204
|
-
<td>A file name</td>
|
205
|
-
</
|
206
|
-
<tr>
|
207
|
-
<td><p><span class="term"><em class="parameter"><code>x_zoom</code></em> :</span></p></td>
|
208
|
-
<td>The horizontal zoom factor</td>
|
260
|
+
<td class="parameter_name"><p>file_name</p></td>
|
261
|
+
<td class="parameter_description"><p>A file name</p></td>
|
262
|
+
<td class="parameter_annotations"> </td>
|
209
263
|
</tr>
|
210
264
|
<tr>
|
211
|
-
<td
|
212
|
-
<td>The
|
265
|
+
<td class="parameter_name"><p>x_zoom</p></td>
|
266
|
+
<td class="parameter_description"><p>The horizontal zoom factor</p></td>
|
267
|
+
<td class="parameter_annotations"> </td>
|
213
268
|
</tr>
|
214
269
|
<tr>
|
215
|
-
<td
|
216
|
-
<td>
|
270
|
+
<td class="parameter_name"><p>y_zoom</p></td>
|
271
|
+
<td class="parameter_description"><p>The vertical zoom factor</p></td>
|
272
|
+
<td class="parameter_annotations"> </td>
|
217
273
|
</tr>
|
218
274
|
<tr>
|
219
|
-
<td
|
220
|
-
<td
|
221
|
-
</td>
|
275
|
+
<td class="parameter_name"><p>error</p></td>
|
276
|
+
<td class="parameter_description"><p>return location for errors</p></td>
|
277
|
+
<td class="parameter_annotations"> </td>
|
222
278
|
</tr>
|
223
279
|
</tbody>
|
224
280
|
</table></div>
|
225
281
|
</div>
|
282
|
+
<div class="refsect3">
|
283
|
+
<a name="id-1.2.6.5.5.7"></a><h4>Returns</h4>
|
284
|
+
<p> A newly allocated <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p>
|
285
|
+
<p></p>
|
286
|
+
</div>
|
287
|
+
</div>
|
226
288
|
<hr>
|
227
289
|
<div class="refsect2">
|
228
|
-
<a name="rsvg-pixbuf-from-file-at-size"></a><h3>rsvg_pixbuf_from_file_at_size
|
229
|
-
<pre class="programlisting"><
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
<
|
234
|
-
<
|
235
|
-
<p><code class="literal">rsvg_pixbuf_from_file_at_size</code> is deprecated and should not be used in newly-written code
|
290
|
+
<a name="rsvg-pixbuf-from-file-at-size"></a><h3>rsvg_pixbuf_from_file_at_size ()</h3>
|
291
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
292
|
+
rsvg_pixbuf_from_file_at_size (<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
293
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
|
294
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
|
295
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
296
|
+
<div class="warning">
|
297
|
+
<p><code class="literal">rsvg_pixbuf_from_file_at_size</code> is deprecated and should not be used in newly-written code.</p>
|
298
|
+
<p>Set up a cairo matrix and use <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()"><code class="function">rsvg_handle_new_from_file()</code></a> + <a class="link" href="rsvg-Using-RSVG-with-cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
|
236
299
|
</div>
|
237
|
-
<p>
|
238
|
-
|
239
|
-
from the size indicated to the new size indicated by <em class="parameter"><code>width</code></em>
|
300
|
+
<p>Loads a new <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> from <em class="parameter"><code>file_name</code></em>
|
301
|
+
and returns it. This pixbuf is scaled
|
302
|
+
from the size indicated to the new size indicated by <em class="parameter"><code>width</code></em>
|
303
|
+
and <em class="parameter"><code>height</code></em>
|
304
|
+
. If
|
240
305
|
either of these are -1, then the default size of the image being loaded is
|
241
306
|
used. The caller must assume the reference to the returned pixbuf. If an
|
242
|
-
error occurred, <em class="parameter"><code>error</code></em>
|
243
|
-
</p>
|
244
|
-
<div class="
|
307
|
+
error occurred, <em class="parameter"><code>error</code></em>
|
308
|
+
is set and <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
309
|
+
<div class="refsect3">
|
310
|
+
<a name="id-1.2.6.5.6.6"></a><h4>Parameters</h4>
|
311
|
+
<div class="informaltable"><table width="100%" border="0">
|
245
312
|
<colgroup>
|
246
|
-
<col
|
247
|
-
<col>
|
313
|
+
<col width="150px" class="parameters_name">
|
314
|
+
<col class="parameters_description">
|
315
|
+
<col width="200px" class="parameters_annotations">
|
248
316
|
</colgroup>
|
249
317
|
<tbody>
|
250
318
|
<tr>
|
251
|
-
<td
|
252
|
-
<td>A file name</td>
|
319
|
+
<td class="parameter_name"><p>file_name</p></td>
|
320
|
+
<td class="parameter_description"><p>A file name</p></td>
|
321
|
+
<td class="parameter_annotations"> </td>
|
253
322
|
</tr>
|
254
323
|
<tr>
|
255
|
-
<td
|
256
|
-
<td>The new width, or -1</td>
|
324
|
+
<td class="parameter_name"><p>width</p></td>
|
325
|
+
<td class="parameter_description"><p>The new width, or -1</p></td>
|
326
|
+
<td class="parameter_annotations"> </td>
|
257
327
|
</tr>
|
258
328
|
<tr>
|
259
|
-
<td
|
260
|
-
<td>The new height, or -1</td>
|
329
|
+
<td class="parameter_name"><p>height</p></td>
|
330
|
+
<td class="parameter_description"><p>The new height, or -1</p></td>
|
331
|
+
<td class="parameter_annotations"> </td>
|
261
332
|
</tr>
|
262
333
|
<tr>
|
263
|
-
<td
|
264
|
-
<td>return location for errors</td>
|
265
|
-
</
|
266
|
-
<tr>
|
267
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
268
|
-
<td>A newly allocated <span class="type">GdkPixbuf</span>, or <code class="literal">NULL</code>
|
269
|
-
</td>
|
334
|
+
<td class="parameter_name"><p>error</p></td>
|
335
|
+
<td class="parameter_description"><p>return location for errors</p></td>
|
336
|
+
<td class="parameter_annotations"> </td>
|
270
337
|
</tr>
|
271
338
|
</tbody>
|
272
339
|
</table></div>
|
273
340
|
</div>
|
341
|
+
<div class="refsect3">
|
342
|
+
<a name="id-1.2.6.5.6.7"></a><h4>Returns</h4>
|
343
|
+
<p> A newly allocated <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p>
|
344
|
+
<p></p>
|
345
|
+
</div>
|
346
|
+
</div>
|
274
347
|
<hr>
|
275
348
|
<div class="refsect2">
|
276
|
-
<a name="rsvg-pixbuf-from-file-at-max-size"></a><h3>rsvg_pixbuf_from_file_at_max_size
|
277
|
-
<pre class="programlisting"><
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
<
|
282
|
-
<
|
283
|
-
<p><code class="literal">rsvg_pixbuf_from_file_at_max_size</code> is deprecated and should not be used in newly-written code
|
349
|
+
<a name="rsvg-pixbuf-from-file-at-max-size"></a><h3>rsvg_pixbuf_from_file_at_max_size ()</h3>
|
350
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
351
|
+
rsvg_pixbuf_from_file_at_max_size (<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
352
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_width</code></em>,
|
353
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_height</code></em>,
|
354
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
355
|
+
<div class="warning">
|
356
|
+
<p><code class="literal">rsvg_pixbuf_from_file_at_max_size</code> is deprecated and should not be used in newly-written code.</p>
|
357
|
+
<p>Set up a cairo matrix and use <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()"><code class="function">rsvg_handle_new_from_file()</code></a> + <a class="link" href="rsvg-Using-RSVG-with-cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
|
284
358
|
</div>
|
285
|
-
<p>
|
286
|
-
|
359
|
+
<p>Loads a new <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> from <em class="parameter"><code>file_name</code></em>
|
360
|
+
and returns it. This pixbuf is uniformly
|
287
361
|
scaled so that the it fits into a rectangle of size max_width * max_height. The
|
288
362
|
caller must assume the reference to the returned pixbuf. If an error occurred,
|
289
|
-
<em class="parameter"><code>error</code></em>
|
290
|
-
</p>
|
291
|
-
<div class="
|
363
|
+
<em class="parameter"><code>error</code></em>
|
364
|
+
is set and <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
365
|
+
<div class="refsect3">
|
366
|
+
<a name="id-1.2.6.5.7.6"></a><h4>Parameters</h4>
|
367
|
+
<div class="informaltable"><table width="100%" border="0">
|
292
368
|
<colgroup>
|
293
|
-
<col
|
294
|
-
<col>
|
369
|
+
<col width="150px" class="parameters_name">
|
370
|
+
<col class="parameters_description">
|
371
|
+
<col width="200px" class="parameters_annotations">
|
295
372
|
</colgroup>
|
296
373
|
<tbody>
|
297
374
|
<tr>
|
298
|
-
<td
|
299
|
-
<td>A file name</td>
|
375
|
+
<td class="parameter_name"><p>file_name</p></td>
|
376
|
+
<td class="parameter_description"><p>A file name</p></td>
|
377
|
+
<td class="parameter_annotations"> </td>
|
300
378
|
</tr>
|
301
379
|
<tr>
|
302
|
-
<td
|
303
|
-
<td>The requested max width</td>
|
380
|
+
<td class="parameter_name"><p>max_width</p></td>
|
381
|
+
<td class="parameter_description"><p>The requested max width</p></td>
|
382
|
+
<td class="parameter_annotations"> </td>
|
304
383
|
</tr>
|
305
384
|
<tr>
|
306
|
-
<td
|
307
|
-
<td>The requested max heigh</td>
|
385
|
+
<td class="parameter_name"><p>max_height</p></td>
|
386
|
+
<td class="parameter_description"><p>The requested max heigh</p></td>
|
387
|
+
<td class="parameter_annotations"> </td>
|
308
388
|
</tr>
|
309
389
|
<tr>
|
310
|
-
<td
|
311
|
-
<td>return location for errors</td>
|
312
|
-
</
|
313
|
-
<tr>
|
314
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
315
|
-
<td>A newly allocated <span class="type">GdkPixbuf</span>, or <code class="literal">NULL</code>
|
316
|
-
</td>
|
390
|
+
<td class="parameter_name"><p>error</p></td>
|
391
|
+
<td class="parameter_description"><p>return location for errors</p></td>
|
392
|
+
<td class="parameter_annotations"> </td>
|
317
393
|
</tr>
|
318
394
|
</tbody>
|
319
395
|
</table></div>
|
320
396
|
</div>
|
397
|
+
<div class="refsect3">
|
398
|
+
<a name="id-1.2.6.5.7.7"></a><h4>Returns</h4>
|
399
|
+
<p> A newly allocated <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p>
|
400
|
+
<p></p>
|
401
|
+
</div>
|
402
|
+
</div>
|
321
403
|
<hr>
|
322
404
|
<div class="refsect2">
|
323
|
-
<a name="rsvg-pixbuf-from-file-at-zoom-with-max"></a><h3>rsvg_pixbuf_from_file_at_zoom_with_max
|
324
|
-
<pre class="programlisting"><span class="returnvalue">GdkPixbuf</span>
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
<
|
332
|
-
<
|
333
|
-
<p><code class="literal">rsvg_pixbuf_from_file_at_zoom_with_max</code> is deprecated and should not be used in newly-written code
|
405
|
+
<a name="rsvg-pixbuf-from-file-at-zoom-with-max"></a><h3>rsvg_pixbuf_from_file_at_zoom_with_max ()</h3>
|
406
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
407
|
+
rsvg_pixbuf_from_file_at_zoom_with_max
|
408
|
+
(<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
409
|
+
<em class="parameter"><code><span class="type">double</span> x_zoom</code></em>,
|
410
|
+
<em class="parameter"><code><span class="type">double</span> y_zoom</code></em>,
|
411
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_width</code></em>,
|
412
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_height</code></em>,
|
413
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
414
|
+
<div class="warning">
|
415
|
+
<p><code class="literal">rsvg_pixbuf_from_file_at_zoom_with_max</code> is deprecated and should not be used in newly-written code.</p>
|
416
|
+
<p>Set up a cairo matrix and use <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()"><code class="function">rsvg_handle_new_from_file()</code></a> + <a class="link" href="rsvg-Using-RSVG-with-cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
|
334
417
|
</div>
|
335
|
-
<p>
|
336
|
-
|
337
|
-
from the size indicated by the file by a factor of <em class="parameter"><code>x_zoom</code></em>
|
418
|
+
<p>Loads a new <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> from <em class="parameter"><code>file_name</code></em>
|
419
|
+
and returns it. This pixbuf is scaled
|
420
|
+
from the size indicated by the file by a factor of <em class="parameter"><code>x_zoom</code></em>
|
421
|
+
and <em class="parameter"><code>y_zoom</code></em>
|
422
|
+
. If the
|
338
423
|
resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
|
339
424
|
down to fit in that rectangle. The caller must assume the reference to the
|
340
|
-
returned pixbuf. If an error occurred, <em class="parameter"><code>error</code></em>
|
341
|
-
</p>
|
342
|
-
<div class="
|
425
|
+
returned pixbuf. If an error occurred, <em class="parameter"><code>error</code></em>
|
426
|
+
is set and <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
427
|
+
<div class="refsect3">
|
428
|
+
<a name="id-1.2.6.5.8.6"></a><h4>Parameters</h4>
|
429
|
+
<div class="informaltable"><table width="100%" border="0">
|
343
430
|
<colgroup>
|
344
|
-
<col
|
345
|
-
<col>
|
431
|
+
<col width="150px" class="parameters_name">
|
432
|
+
<col class="parameters_description">
|
433
|
+
<col width="200px" class="parameters_annotations">
|
346
434
|
</colgroup>
|
347
435
|
<tbody>
|
348
436
|
<tr>
|
349
|
-
<td
|
350
|
-
<td>A file name</td>
|
437
|
+
<td class="parameter_name"><p>file_name</p></td>
|
438
|
+
<td class="parameter_description"><p>A file name</p></td>
|
439
|
+
<td class="parameter_annotations"> </td>
|
351
440
|
</tr>
|
352
441
|
<tr>
|
353
|
-
<td
|
354
|
-
<td>The horizontal zoom factor</td>
|
442
|
+
<td class="parameter_name"><p>x_zoom</p></td>
|
443
|
+
<td class="parameter_description"><p>The horizontal zoom factor</p></td>
|
444
|
+
<td class="parameter_annotations"> </td>
|
355
445
|
</tr>
|
356
446
|
<tr>
|
357
|
-
<td
|
358
|
-
<td>The vertical zoom factor</td>
|
447
|
+
<td class="parameter_name"><p>y_zoom</p></td>
|
448
|
+
<td class="parameter_description"><p>The vertical zoom factor</p></td>
|
449
|
+
<td class="parameter_annotations"> </td>
|
359
450
|
</tr>
|
360
451
|
<tr>
|
361
|
-
<td
|
362
|
-
<td>The requested max width</td>
|
452
|
+
<td class="parameter_name"><p>max_width</p></td>
|
453
|
+
<td class="parameter_description"><p>The requested max width</p></td>
|
454
|
+
<td class="parameter_annotations"> </td>
|
363
455
|
</tr>
|
364
456
|
<tr>
|
365
|
-
<td
|
366
|
-
<td>The requested max heigh</td>
|
457
|
+
<td class="parameter_name"><p>max_height</p></td>
|
458
|
+
<td class="parameter_description"><p>The requested max heigh</p></td>
|
459
|
+
<td class="parameter_annotations"> </td>
|
367
460
|
</tr>
|
368
461
|
<tr>
|
369
|
-
<td
|
370
|
-
<td>return location for errors</td>
|
371
|
-
</
|
372
|
-
<tr>
|
373
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
374
|
-
<td>A newly allocated <span class="type">GdkPixbuf</span>, or <code class="literal">NULL</code>
|
375
|
-
</td>
|
462
|
+
<td class="parameter_name"><p>error</p></td>
|
463
|
+
<td class="parameter_description"><p>return location for errors</p></td>
|
464
|
+
<td class="parameter_annotations"> </td>
|
376
465
|
</tr>
|
377
466
|
</tbody>
|
378
467
|
</table></div>
|
379
468
|
</div>
|
469
|
+
<div class="refsect3">
|
470
|
+
<a name="id-1.2.6.5.8.7"></a><h4>Returns</h4>
|
471
|
+
<p> A newly allocated <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p>
|
472
|
+
<p></p>
|
473
|
+
</div>
|
474
|
+
</div>
|
475
|
+
</div>
|
476
|
+
<div class="refsect1">
|
477
|
+
<a name="rsvg-Using-RSVG-with-GdkPixbuf.other_details"></a><h2>Types and Values</h2>
|
380
478
|
</div>
|
381
479
|
</div>
|
382
480
|
<div class="footer">
|
383
481
|
<hr>
|
384
|
-
Generated by GTK-Doc V1.
|
482
|
+
Generated by GTK-Doc V1.21</div>
|
385
483
|
</body>
|
386
484
|
</html>
|