4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>Rendering SVGs with GdkPixbuf</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="RSVG Reference Manual">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
7
<link rel="home" href="index.html" title="RSVG Reference Manual">
8
8
<link rel="up" href="pt04.html" title="Part IV. Using RSVG with GdkPixbuf">
9
9
<link rel="prev" href="pt04.html" title="Part IV. Using RSVG with GdkPixbuf">
10
10
<link rel="next" href="ix01.html" title="Index">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="rsvg.html" title="Part I. RSVG Overview">
14
14
<link rel="part" href="pt02.html" title="Part II. Using RSVG">
25
25
<th width="100%" align="center">RSVG Reference Manual</th>
26
26
<td><a accesskey="n" href="ix01.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#rsvg-GdkPixbuf.synopsis" class="shortcut">Top</a>
30
<a href="#rsvg-GdkPixbuf.description" class="shortcut">Description</a></nobr></td></tr>
28
<tr><td colspan="5" class="shortcuts">
29
<a href="#rsvg-GdkPixbuf.synopsis" class="shortcut">Top</a>
31
<a href="#rsvg-GdkPixbuf.description" class="shortcut">Description</a>
32
<div class="refentry" lang="en">
34
<div class="refentry" title="Rendering SVGs with GdkPixbuf">
33
35
<a name="rsvg-GdkPixbuf"></a><div class="titlepage"></div>
34
36
<div class="refnamediv"><table width="100%"><tr>
41
43
<td valign="top" align="right"></td>
42
44
</tr></table></div>
43
<div class="refsynopsisdiv">
45
<div class="refsynopsisdiv" title="Synopsis">
44
46
<a name="rsvg-GdkPixbuf.synopsis"></a><h2>Synopsis</h2>
45
47
<pre class="synopsis">
46
GdkPixbuf* <a class="link" href="rsvg-GdkPixbuf.html#rsvg-handle-get-pixbuf" title="rsvg_handle_get_pixbuf ()">rsvg_handle_get_pixbuf</a> (RsvgHandle *handle);
47
GdkPixbuf* <a class="link" href="rsvg-GdkPixbuf.html#rsvg-handle-get-pixbuf-sub" title="rsvg_handle_get_pixbuf_sub ()">rsvg_handle_get_pixbuf_sub</a> (RsvgHandle *handle,
49
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
50
>GdkPixbuf</a> * <a class="link" href="rsvg-GdkPixbuf.html#rsvg-handle-get-pixbuf" title="rsvg_handle_get_pixbuf ()">rsvg_handle_get_pixbuf</a> (RsvgHandle *handle);
52
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
53
>GdkPixbuf</a> * <a class="link" href="rsvg-GdkPixbuf.html#rsvg-handle-get-pixbuf-sub" title="rsvg_handle_get_pixbuf_sub ()">rsvg_handle_get_pixbuf_sub</a> (RsvgHandle *handle,
49
GdkPixbuf* <a class="link" href="rsvg-GdkPixbuf.html#rsvg-pixbuf-from-file" title="rsvg_pixbuf_from_file ()">rsvg_pixbuf_from_file</a> (const gchar *file_name,
51
GdkPixbuf* <a class="link" href="rsvg-GdkPixbuf.html#rsvg-pixbuf-from-file-at-zoom" title="rsvg_pixbuf_from_file_at_zoom ()">rsvg_pixbuf_from_file_at_zoom</a> (const gchar *file_name,
55
GdkPixbuf* <a class="link" href="rsvg-GdkPixbuf.html#rsvg-pixbuf-from-file-at-size" title="rsvg_pixbuf_from_file_at_size ()">rsvg_pixbuf_from_file_at_size</a> (const gchar *file_name,
59
GdkPixbuf* <a class="link" href="rsvg-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> (const gchar *file_name,
63
GdkPixbuf* <a class="link" href="rsvg-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>
64
(const gchar *file_name,
56
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
57
>GdkPixbuf</a> * <a class="link" href="rsvg-GdkPixbuf.html#rsvg-pixbuf-from-file" title="rsvg_pixbuf_from_file ()">rsvg_pixbuf_from_file</a> (const <a
58
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
59
>gchar</a> *file_name,
61
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
64
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
65
>GdkPixbuf</a> * <a class="link" href="rsvg-GdkPixbuf.html#rsvg-pixbuf-from-file-at-zoom" title="rsvg_pixbuf_from_file_at_zoom ()">rsvg_pixbuf_from_file_at_zoom</a> (const <a
66
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
67
>gchar</a> *file_name,
71
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
74
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
75
>GdkPixbuf</a> * <a class="link" href="rsvg-GdkPixbuf.html#rsvg-pixbuf-from-file-at-size" title="rsvg_pixbuf_from_file_at_size ()">rsvg_pixbuf_from_file_at_size</a> (const <a
76
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
77
>gchar</a> *file_name,
79
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
82
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
85
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
88
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
89
>GdkPixbuf</a> * <a class="link" href="rsvg-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> (const <a
90
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
91
>gchar</a> *file_name,
93
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
96
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
99
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
100
>GError</a> **error);
102
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
103
>GdkPixbuf</a> * <a class="link" href="rsvg-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>
105
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
106
>gchar</a> *file_name,
110
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
113
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
114
>gint</a> max_height,
116
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
117
>GError</a> **error);
72
<div class="refsect1" lang="en">
120
<div class="refsect1" title="Description">
73
121
<a name="rsvg-GdkPixbuf.description"></a><h2>Description</h2>
75
123
GdkPixbuf is a library for image loading and manipulation. It is part of the cross-platform GTK+ widget toolkit.
78
<div class="refsect1" lang="en">
126
<div class="refsect1" title="Details">
79
127
<a name="rsvg-GdkPixbuf.details"></a><h2>Details</h2>
80
<div class="refsect2" lang="en">
128
<div class="refsect2" title="rsvg_handle_get_pixbuf ()">
81
129
<a name="rsvg-handle-get-pixbuf"></a><h3>rsvg_handle_get_pixbuf ()</h3>
82
<pre class="programlisting">GdkPixbuf* rsvg_handle_get_pixbuf (RsvgHandle *handle);</pre>
130
<pre class="programlisting"><a
131
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
132
>GdkPixbuf</a> * rsvg_handle_get_pixbuf (RsvgHandle *handle);</pre>
84
134
Returns the pixbuf loaded by <span class="type">handle</span>. The pixbuf returned will be reffed, so
85
135
the caller of this function must assume that ref. If insufficient data has
145
<p class="since">Since 2.14
195
<p class="since">Since 2.14</p>
149
<div class="refsect2" lang="en">
198
<div class="refsect2" title="rsvg_pixbuf_from_file ()">
150
199
<a name="rsvg-pixbuf-from-file"></a><h3>rsvg_pixbuf_from_file ()</h3>
151
<pre class="programlisting">GdkPixbuf* rsvg_pixbuf_from_file (const gchar *file_name,
152
GError **error);</pre>
153
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
200
<pre class="programlisting"><a
201
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
202
>GdkPixbuf</a> * rsvg_pixbuf_from_file (const <a
203
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
204
>gchar</a> *file_name,
206
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
207
>GError</a> **error);</pre>
208
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
154
209
<h3 class="title">Warning</h3>
155
210
<p><code class="literal">rsvg_pixbuf_from_file</code> is deprecated and should not be used in newly-written code. Set up a cairo matrix and use <a class="link" href="rsvg-Core-API.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-Cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
158
Loads a new <span class="type">GdkPixbuf</span> from <em class="parameter"><code>file_name</code></em> and returns it. The caller must
214
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
215
><span class="type">GdkPixbuf</span></a> from <em class="parameter"><code>file_name</code></em> and returns it. The caller must
159
216
assume the reference to the reurned pixbuf. If an error occurred, <em class="parameter"><code>error</code></em> is
160
217
set and <code class="literal">NULL</code> is returned.</p>
164
220
<div class="variablelist"><table border="0">
165
221
<col align="left" valign="top">
178
234
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
179
<td> A newly allocated <span class="type">GdkPixbuf</span>, or <code class="literal">NULL</code>
235
<td> A newly allocated <a
236
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
237
><span class="type">GdkPixbuf</span></a>, or <code class="literal">NULL</code>
186
<div class="refsect2" lang="en">
244
<div class="refsect2" title="rsvg_pixbuf_from_file_at_zoom ()">
187
245
<a name="rsvg-pixbuf-from-file-at-zoom"></a><h3>rsvg_pixbuf_from_file_at_zoom ()</h3>
188
<pre class="programlisting">GdkPixbuf* rsvg_pixbuf_from_file_at_zoom (const gchar *file_name,
246
<pre class="programlisting"><a
247
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
248
>GdkPixbuf</a> * rsvg_pixbuf_from_file_at_zoom (const <a
249
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
250
>gchar</a> *file_name,
191
GError **error);</pre>
192
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
254
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
255
>GError</a> **error);</pre>
256
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
193
257
<h3 class="title">Warning</h3>
194
258
<p><code class="literal">rsvg_pixbuf_from_file_at_zoom</code> is deprecated and should not be used in newly-written code. Set up a cairo matrix and use <a class="link" href="rsvg-Core-API.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-Cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
197
Loads a new <span class="type">GdkPixbuf</span> from <em class="parameter"><code>file_name</code></em> and returns it. This pixbuf is scaled
262
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
263
><span class="type">GdkPixbuf</span></a> from <em class="parameter"><code>file_name</code></em> and returns it. This pixbuf is scaled
198
264
from the size indicated by the file by a factor of <em class="parameter"><code>x_zoom</code></em> and <em class="parameter"><code>y_zoom</code></em>. The
199
265
caller must assume the reference to the returned pixbuf. If an error
200
266
occurred, <em class="parameter"><code>error</code></em> is set and <code class="literal">NULL</code> is returned.</p>
204
269
<div class="variablelist"><table border="0">
205
270
<col align="left" valign="top">
228
293
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
229
<td> A newly allocated <span class="type">GdkPixbuf</span>, or <code class="literal">NULL</code>
294
<td> A newly allocated <a
295
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
296
><span class="type">GdkPixbuf</span></a>, or <code class="literal">NULL</code>
236
<div class="refsect2" lang="en">
303
<div class="refsect2" title="rsvg_pixbuf_from_file_at_size ()">
237
304
<a name="rsvg-pixbuf-from-file-at-size"></a><h3>rsvg_pixbuf_from_file_at_size ()</h3>
238
<pre class="programlisting">GdkPixbuf* rsvg_pixbuf_from_file_at_size (const gchar *file_name,
241
GError **error);</pre>
242
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
305
<pre class="programlisting"><a
306
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
307
>GdkPixbuf</a> * rsvg_pixbuf_from_file_at_size (const <a
308
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
309
>gchar</a> *file_name,
311
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
314
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
317
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
318
>GError</a> **error);</pre>
319
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
243
320
<h3 class="title">Warning</h3>
244
321
<p><code class="literal">rsvg_pixbuf_from_file_at_size</code> is deprecated and should not be used in newly-written code. Set up a cairo matrix and use <a class="link" href="rsvg-Core-API.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-Cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
247
Loads a new <span class="type">GdkPixbuf</span> from <em class="parameter"><code>file_name</code></em> and returns it. This pixbuf is scaled
325
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
326
><span class="type">GdkPixbuf</span></a> from <em class="parameter"><code>file_name</code></em> and returns it. This pixbuf is scaled
248
327
from the size indicated to the new size indicated by <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
249
328
either of these are -1, then the default size of the image being loaded is
250
329
used. The caller must assume the reference to the returned pixbuf. If an
251
330
error occurred, <em class="parameter"><code>error</code></em> is set and <code class="literal">NULL</code> is returned.</p>
255
333
<div class="variablelist"><table border="0">
256
334
<col align="left" valign="top">
279
357
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
280
<td> A newly allocated <span class="type">GdkPixbuf</span>, or <code class="literal">NULL</code>
358
<td> A newly allocated <a
359
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
360
><span class="type">GdkPixbuf</span></a>, or <code class="literal">NULL</code>
287
<div class="refsect2" lang="en">
367
<div class="refsect2" title="rsvg_pixbuf_from_file_at_max_size ()">
288
368
<a name="rsvg-pixbuf-from-file-at-max-size"></a><h3>rsvg_pixbuf_from_file_at_max_size ()</h3>
289
<pre class="programlisting">GdkPixbuf* rsvg_pixbuf_from_file_at_max_size (const gchar *file_name,
292
GError **error);</pre>
293
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
369
<pre class="programlisting"><a
370
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
371
>GdkPixbuf</a> * rsvg_pixbuf_from_file_at_max_size (const <a
372
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
373
>gchar</a> *file_name,
375
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
378
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
379
>gint</a> max_height,
381
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
382
>GError</a> **error);</pre>
383
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
294
384
<h3 class="title">Warning</h3>
295
385
<p><code class="literal">rsvg_pixbuf_from_file_at_max_size</code> is deprecated and should not be used in newly-written code. Set up a cairo matrix and use <a class="link" href="rsvg-Core-API.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-Cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
298
Loads a new <span class="type">GdkPixbuf</span> from <em class="parameter"><code>file_name</code></em> and returns it. This pixbuf is uniformly
389
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
390
><span class="type">GdkPixbuf</span></a> from <em class="parameter"><code>file_name</code></em> and returns it. This pixbuf is uniformly
299
391
scaled so that the it fits into a rectangle of size max_width * max_height. The
300
392
caller must assume the reference to the returned pixbuf. If an error occurred,
301
393
<em class="parameter"><code>error</code></em> is set and <code class="literal">NULL</code> is returned.</p>
305
396
<div class="variablelist"><table border="0">
306
397
<col align="left" valign="top">
329
420
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
330
<td> A newly allocated <span class="type">GdkPixbuf</span>, or <code class="literal">NULL</code>
421
<td> A newly allocated <a
422
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
423
><span class="type">GdkPixbuf</span></a>, or <code class="literal">NULL</code>
337
<div class="refsect2" lang="en">
430
<div class="refsect2" title="rsvg_pixbuf_from_file_at_zoom_with_max ()">
338
431
<a name="rsvg-pixbuf-from-file-at-zoom-with-max"></a><h3>rsvg_pixbuf_from_file_at_zoom_with_max ()</h3>
339
<pre class="programlisting">GdkPixbuf* rsvg_pixbuf_from_file_at_zoom_with_max
340
(const gchar *file_name,
432
<pre class="programlisting"><a
433
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
434
>GdkPixbuf</a> * rsvg_pixbuf_from_file_at_zoom_with_max
436
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
437
>gchar</a> *file_name,
345
GError **error);</pre>
346
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
441
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
444
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
445
>gint</a> max_height,
447
href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"
448
>GError</a> **error);</pre>
449
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
347
450
<h3 class="title">Warning</h3>
348
451
<p><code class="literal">rsvg_pixbuf_from_file_at_zoom_with_max</code> is deprecated and should not be used in newly-written code. Set up a cairo matrix and use <a class="link" href="rsvg-Core-API.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-Cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p>
351
Loads a new <span class="type">GdkPixbuf</span> from <em class="parameter"><code>file_name</code></em> and returns it. This pixbuf is scaled
455
href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
456
><span class="type">GdkPixbuf</span></a> from <em class="parameter"><code>file_name</code></em> and returns it. This pixbuf is scaled
352
457
from the size indicated by the file by a factor of <em class="parameter"><code>x_zoom</code></em> and <em class="parameter"><code>y_zoom</code></em>. If the
353
458
resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
354
459
down to fit in that rectangle. The caller must assume the reference to the
355
460
returned pixbuf. If an error occurred, <em class="parameter"><code>error</code></em> is set and <code class="literal">NULL</code> is returned.</p>
359
463
<div class="variablelist"><table border="0">
360
464
<col align="left" valign="top">