rsvg2 2.2.5-x86-mingw32 → 3.0.0-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/ext/rsvg2/extconf.rb +1 -1
- data/ext/rsvg2/rbrsvg.c +2 -15
- data/ext/rsvg2/rbrsvghandle.c +44 -197
- data/ext/rsvg2/rsvg2.h +13 -19
- 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/lib/rsvg2.rb +26 -11
- data/sample/svg-viewer.rb +2 -2
- data/test/rsvg2-test-utils.rb +11 -0
- data/test/test-handle.rb +4 -0
- 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/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 +2 -2
- data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +2 -2
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +724 -1039
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +32 -29
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +19 -16
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +16 -13
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +17 -14
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +20 -15
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +15 -12
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +22 -17
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +23 -18
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +36 -31
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +85 -80
- 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 +28 -31
- 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.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +59 -55
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +190 -247
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +239 -336
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +70 -95
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +37 -77
- 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 +104 -314
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
- metadata +4 -7
- 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/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
@@ -2,26 +2,30 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>
|
5
|
+
<title>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.19 (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
|
-
<a
|
18
|
-
|
19
|
-
|
20
|
-
<
|
21
|
-
<td><a accesskey="
|
22
|
-
|
23
|
-
<td
|
24
|
-
</
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
+
<tr valign="middle">
|
17
|
+
<td><a accesskey="p" href="rsvg-Using-RSVG-with-cairo.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
+
<td><a accesskey="u" href="rsvg.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
+
<th width="100%" align="center">RSVG Libary Reference Manual</th>
|
21
|
+
<td><a accesskey="n" href="rsvg-Version-check-and-feature-tests.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
+
</tr>
|
23
|
+
<tr><td colspan="5" class="shortcuts">
|
24
|
+
<a href="#rsvg-Using-RSVG-with-GdkPixbuf.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#rsvg-Using-RSVG-with-GdkPixbuf.description" class="shortcut">Description</a>
|
27
|
+
</td></tr>
|
28
|
+
</table>
|
25
29
|
<div class="refentry">
|
26
30
|
<a name="rsvg-Using-RSVG-with-GdkPixbuf"></a><div class="titlepage"></div>
|
27
31
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -30,455 +34,354 @@
|
|
30
34
|
<p>Using RSVG with GdkPixbuf — How to render SVGs into GdkPixbufs, for easy use in GTK+
|
31
35
|
applications</p>
|
32
36
|
</td>
|
33
|
-
<td
|
37
|
+
<td valign="top" align="right"></td>
|
34
38
|
</tr></table></div>
|
39
|
+
<div class="refsynopsisdiv">
|
40
|
+
<a name="rsvg-Using-RSVG-with-GdkPixbuf.synopsis"></a><h2>Synopsis</h2>
|
41
|
+
<pre class="synopsis"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <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
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <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
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
45
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
46
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *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><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
50
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
51
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
|
52
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
|
53
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
54
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
55
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_width</code></em>,
|
56
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_height</code></em>,
|
57
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
|
58
|
+
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *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><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_width</code></em>,
|
63
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_height</code></em>,
|
64
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **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>
|
35
74
|
<div class="refsect1">
|
36
|
-
<a name="rsvg-Using-RSVG-with-GdkPixbuf.
|
37
|
-
<div class="
|
75
|
+
<a name="rsvg-Using-RSVG-with-GdkPixbuf.details"></a><h2>Details</h2>
|
76
|
+
<div class="refsect2">
|
77
|
+
<a name="rsvg-handle-get-pixbuf"></a><h3>rsvg_handle_get_pixbuf ()</h3>
|
78
|
+
<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> * 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 <em class="parameter"><code>handle</code></em>. 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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
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">
|
38
87
|
<colgroup>
|
39
|
-
<col
|
40
|
-
<col
|
88
|
+
<col align="left" valign="top">
|
89
|
+
<col>
|
41
90
|
</colgroup>
|
42
91
|
<tbody>
|
43
92
|
<tr>
|
44
|
-
<td class="
|
45
|
-
<a href="
|
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>
|
93
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
94
|
+
<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
65
95
|
</td>
|
66
96
|
</tr>
|
67
97
|
<tr>
|
68
|
-
<td class="
|
69
|
-
<a href="http://library.gnome.org/devel/
|
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>
|
98
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
99
|
+
<td>the pixbuf loaded by <em class="parameter"><code>handle</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][nullable]</span>
|
97
100
|
</td>
|
98
101
|
</tr>
|
99
102
|
</tbody>
|
100
103
|
</table></div>
|
101
104
|
</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>
|
142
105
|
<hr>
|
143
106
|
<div class="refsect2">
|
144
|
-
<a name="rsvg-handle-get-pixbuf-sub"></a><h3>rsvg_handle_get_pixbuf_sub
|
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
|
-
|
147
|
-
|
148
|
-
|
149
|
-
. The pixbuf returned will be reffed, so
|
107
|
+
<a name="rsvg-handle-get-pixbuf-sub"></a><h3>rsvg_handle_get_pixbuf_sub ()</h3>
|
108
|
+
<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> * 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>,
|
109
|
+
<em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre>
|
110
|
+
<p>
|
111
|
+
Returns the pixbuf loaded by <em class="parameter"><code>handle</code></em>. The pixbuf returned will be reffed, so
|
150
112
|
the caller of this function must assume that ref. If insufficient data has
|
151
|
-
been read to create the pixbuf, or an error occurred in loading, then <a href="/
|
113
|
+
been read to create the pixbuf, or an error occurred in loading, then <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
152
114
|
will be returned. Note that the pixbuf may not be complete until
|
153
|
-
<em class="parameter"><code>rsvg_handle_close</code></em>
|
154
|
-
|
155
|
-
<div class="
|
156
|
-
<a name="id-1.2.6.5.3.5"></a><h4>Parameters</h4>
|
157
|
-
<div class="informaltable"><table width="100%" border="0">
|
115
|
+
<em class="parameter"><code>rsvg_handle_close</code></em> has been called.
|
116
|
+
</p>
|
117
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
158
118
|
<colgroup>
|
159
|
-
<col
|
160
|
-
<col
|
161
|
-
<col width="200px" class="parameters_annotations">
|
119
|
+
<col align="left" valign="top">
|
120
|
+
<col>
|
162
121
|
</colgroup>
|
163
122
|
<tbody>
|
164
123
|
<tr>
|
165
|
-
<td class="
|
166
|
-
<td
|
167
|
-
|
124
|
+
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
|
125
|
+
<td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>
|
126
|
+
</td>
|
168
127
|
</tr>
|
169
128
|
<tr>
|
170
|
-
<td class="
|
171
|
-
<td
|
129
|
+
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
|
130
|
+
<td>The id of an element inside the SVG, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
|
172
131
|
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. </
|
174
|
-
|
132
|
+
"layer1" that you wish to render, pass "#<span class="type">layer1</span>" as the id. <span class="annotation">[nullable]</span>
|
133
|
+
</td>
|
134
|
+
</tr>
|
135
|
+
<tr>
|
136
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
137
|
+
<td>the pixbuf loaded by <em class="parameter"><code>handle</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][nullable]</span>
|
138
|
+
</td>
|
175
139
|
</tr>
|
176
140
|
</tbody>
|
177
141
|
</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>
|
185
142
|
<p class="since">Since 2.14</p>
|
186
143
|
</div>
|
187
144
|
<hr>
|
188
145
|
<div class="refsect2">
|
189
|
-
<a name="rsvg-pixbuf-from-file"></a><h3>rsvg_pixbuf_from_file
|
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
|
-
|
192
|
-
|
193
|
-
<
|
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>
|
146
|
+
<a name="rsvg-pixbuf-from-file"></a><h3>rsvg_pixbuf_from_file ()</h3>
|
147
|
+
<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> * rsvg_pixbuf_from_file (<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> *file_name</code></em>,
|
148
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
149
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
150
|
+
<h3 class="title">Warning</h3>
|
151
|
+
<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="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>
|
196
152
|
</div>
|
197
|
-
<p>
|
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
|
-
|
202
|
-
<div class="
|
203
|
-
<a name="id-1.2.6.5.4.6"></a><h4>Parameters</h4>
|
204
|
-
<div class="informaltable"><table width="100%" border="0">
|
153
|
+
<p>
|
154
|
+
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> and returns it. The caller must
|
155
|
+
assume the reference to the reurned pixbuf. If an error occurred, <em class="parameter"><code>error</code></em> is
|
156
|
+
set and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.
|
157
|
+
</p>
|
158
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
205
159
|
<colgroup>
|
206
|
-
<col
|
207
|
-
<col
|
208
|
-
<col width="200px" class="parameters_annotations">
|
160
|
+
<col align="left" valign="top">
|
161
|
+
<col>
|
209
162
|
</colgroup>
|
210
163
|
<tbody>
|
211
164
|
<tr>
|
212
|
-
<td class="
|
213
|
-
<td
|
214
|
-
<td class="parameter_annotations"> </td>
|
165
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
166
|
+
<td>A file name</td>
|
215
167
|
</tr>
|
216
168
|
<tr>
|
217
|
-
<td class="
|
218
|
-
<td
|
219
|
-
|
169
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
170
|
+
<td>return location for errors</td>
|
171
|
+
</tr>
|
172
|
+
<tr>
|
173
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
174
|
+
<td>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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
175
|
+
</td>
|
220
176
|
</tr>
|
221
177
|
</tbody>
|
222
178
|
</table></div>
|
223
179
|
</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>
|
230
180
|
<hr>
|
231
181
|
<div class="refsect2">
|
232
|
-
<a name="rsvg-pixbuf-from-file-at-zoom"></a><h3>rsvg_pixbuf_from_file_at_zoom
|
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
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
<
|
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>
|
182
|
+
<a name="rsvg-pixbuf-from-file-at-zoom"></a><h3>rsvg_pixbuf_from_file_at_zoom ()</h3>
|
183
|
+
<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> * rsvg_pixbuf_from_file_at_zoom (<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> *file_name</code></em>,
|
184
|
+
<em class="parameter"><code><span class="type">double</span> x_zoom</code></em>,
|
185
|
+
<em class="parameter"><code><span class="type">double</span> y_zoom</code></em>,
|
186
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
187
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
188
|
+
<h3 class="title">Warning</h3>
|
189
|
+
<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="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>
|
241
190
|
</div>
|
242
|
-
<p>
|
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
|
191
|
+
<p>
|
192
|
+
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> and returns it. This pixbuf is scaled
|
193
|
+
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
|
247
194
|
caller must assume the reference to the returned pixbuf. If an error
|
248
|
-
occurred, <em class="parameter"><code>error</code></em>
|
249
|
-
|
250
|
-
<div class="
|
251
|
-
<a name="id-1.2.6.5.5.6"></a><h4>Parameters</h4>
|
252
|
-
<div class="informaltable"><table width="100%" border="0">
|
195
|
+
occurred, <em class="parameter"><code>error</code></em> is set and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.
|
196
|
+
</p>
|
197
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
253
198
|
<colgroup>
|
254
|
-
<col
|
255
|
-
<col
|
256
|
-
<col width="200px" class="parameters_annotations">
|
199
|
+
<col align="left" valign="top">
|
200
|
+
<col>
|
257
201
|
</colgroup>
|
258
202
|
<tbody>
|
259
203
|
<tr>
|
260
|
-
<td class="
|
261
|
-
<td
|
262
|
-
<td class="parameter_annotations"> </td>
|
204
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
205
|
+
<td>A file name</td>
|
263
206
|
</tr>
|
264
207
|
<tr>
|
265
|
-
<td class="
|
266
|
-
<td
|
267
|
-
<td class="parameter_annotations"> </td>
|
208
|
+
<td><p><span class="term"><em class="parameter"><code>x_zoom</code></em> :</span></p></td>
|
209
|
+
<td>The horizontal zoom factor</td>
|
268
210
|
</tr>
|
269
211
|
<tr>
|
270
|
-
<td class="
|
271
|
-
<td
|
272
|
-
<td class="parameter_annotations"> </td>
|
212
|
+
<td><p><span class="term"><em class="parameter"><code>y_zoom</code></em> :</span></p></td>
|
213
|
+
<td>The vertical zoom factor</td>
|
273
214
|
</tr>
|
274
215
|
<tr>
|
275
|
-
<td class="
|
276
|
-
<td
|
277
|
-
|
216
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
217
|
+
<td>return location for errors</td>
|
218
|
+
</tr>
|
219
|
+
<tr>
|
220
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
221
|
+
<td>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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
222
|
+
</td>
|
278
223
|
</tr>
|
279
224
|
</tbody>
|
280
225
|
</table></div>
|
281
226
|
</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>
|
288
227
|
<hr>
|
289
228
|
<div class="refsect2">
|
290
|
-
<a name="rsvg-pixbuf-from-file-at-size"></a><h3>rsvg_pixbuf_from_file_at_size
|
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
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
<
|
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>
|
229
|
+
<a name="rsvg-pixbuf-from-file-at-size"></a><h3>rsvg_pixbuf_from_file_at_size ()</h3>
|
230
|
+
<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> * rsvg_pixbuf_from_file_at_size (<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> *file_name</code></em>,
|
231
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
|
232
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
|
233
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
234
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
235
|
+
<h3 class="title">Warning</h3>
|
236
|
+
<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="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>
|
299
237
|
</div>
|
300
|
-
<p>
|
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
|
238
|
+
<p>
|
239
|
+
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> and returns it. This pixbuf is scaled
|
240
|
+
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
|
305
241
|
either of these are -1, then the default size of the image being loaded is
|
306
242
|
used. The caller must assume the reference to the returned pixbuf. If an
|
307
|
-
error occurred, <em class="parameter"><code>error</code></em>
|
308
|
-
|
309
|
-
<div class="
|
310
|
-
<a name="id-1.2.6.5.6.6"></a><h4>Parameters</h4>
|
311
|
-
<div class="informaltable"><table width="100%" border="0">
|
243
|
+
error occurred, <em class="parameter"><code>error</code></em> is set and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.
|
244
|
+
</p>
|
245
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
312
246
|
<colgroup>
|
313
|
-
<col
|
314
|
-
<col
|
315
|
-
<col width="200px" class="parameters_annotations">
|
247
|
+
<col align="left" valign="top">
|
248
|
+
<col>
|
316
249
|
</colgroup>
|
317
250
|
<tbody>
|
318
251
|
<tr>
|
319
|
-
<td class="
|
320
|
-
<td
|
321
|
-
<td class="parameter_annotations"> </td>
|
252
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
253
|
+
<td>A file name</td>
|
322
254
|
</tr>
|
323
255
|
<tr>
|
324
|
-
<td class="
|
325
|
-
<td
|
326
|
-
<td class="parameter_annotations"> </td>
|
256
|
+
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
257
|
+
<td>The new width, or -1</td>
|
327
258
|
</tr>
|
328
259
|
<tr>
|
329
|
-
<td class="
|
330
|
-
<td
|
331
|
-
<td class="parameter_annotations"> </td>
|
260
|
+
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
261
|
+
<td>The new height, or -1</td>
|
332
262
|
</tr>
|
333
263
|
<tr>
|
334
|
-
<td class="
|
335
|
-
<td
|
336
|
-
|
264
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
265
|
+
<td>return location for errors</td>
|
266
|
+
</tr>
|
267
|
+
<tr>
|
268
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
269
|
+
<td>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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
270
|
+
</td>
|
337
271
|
</tr>
|
338
272
|
</tbody>
|
339
273
|
</table></div>
|
340
274
|
</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>
|
347
275
|
<hr>
|
348
276
|
<div class="refsect2">
|
349
|
-
<a name="rsvg-pixbuf-from-file-at-max-size"></a><h3>rsvg_pixbuf_from_file_at_max_size
|
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
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
<
|
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>
|
277
|
+
<a name="rsvg-pixbuf-from-file-at-max-size"></a><h3>rsvg_pixbuf_from_file_at_max_size ()</h3>
|
278
|
+
<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> * rsvg_pixbuf_from_file_at_max_size (<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> *file_name</code></em>,
|
279
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_width</code></em>,
|
280
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_height</code></em>,
|
281
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
282
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
283
|
+
<h3 class="title">Warning</h3>
|
284
|
+
<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="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>
|
358
285
|
</div>
|
359
|
-
<p>
|
360
|
-
and returns it. This pixbuf is uniformly
|
286
|
+
<p>
|
287
|
+
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> and returns it. This pixbuf is uniformly
|
361
288
|
scaled so that the it fits into a rectangle of size max_width * max_height. The
|
362
289
|
caller must assume the reference to the returned pixbuf. If an error occurred,
|
363
|
-
<em class="parameter"><code>error</code></em>
|
364
|
-
|
365
|
-
<div class="
|
366
|
-
<a name="id-1.2.6.5.7.6"></a><h4>Parameters</h4>
|
367
|
-
<div class="informaltable"><table width="100%" border="0">
|
290
|
+
<em class="parameter"><code>error</code></em> is set and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.
|
291
|
+
</p>
|
292
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
368
293
|
<colgroup>
|
369
|
-
<col
|
370
|
-
<col
|
371
|
-
<col width="200px" class="parameters_annotations">
|
294
|
+
<col align="left" valign="top">
|
295
|
+
<col>
|
372
296
|
</colgroup>
|
373
297
|
<tbody>
|
374
298
|
<tr>
|
375
|
-
<td class="
|
376
|
-
<td
|
377
|
-
<td class="parameter_annotations"> </td>
|
299
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
300
|
+
<td>A file name</td>
|
378
301
|
</tr>
|
379
302
|
<tr>
|
380
|
-
<td class="
|
381
|
-
<td
|
382
|
-
<td class="parameter_annotations"> </td>
|
303
|
+
<td><p><span class="term"><em class="parameter"><code>max_width</code></em> :</span></p></td>
|
304
|
+
<td>The requested max width</td>
|
383
305
|
</tr>
|
384
306
|
<tr>
|
385
|
-
<td class="
|
386
|
-
<td
|
387
|
-
<td class="parameter_annotations"> </td>
|
307
|
+
<td><p><span class="term"><em class="parameter"><code>max_height</code></em> :</span></p></td>
|
308
|
+
<td>The requested max heigh</td>
|
388
309
|
</tr>
|
389
310
|
<tr>
|
390
|
-
<td class="
|
391
|
-
<td
|
392
|
-
|
311
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
312
|
+
<td>return location for errors</td>
|
313
|
+
</tr>
|
314
|
+
<tr>
|
315
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
316
|
+
<td>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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
317
|
+
</td>
|
393
318
|
</tr>
|
394
319
|
</tbody>
|
395
320
|
</table></div>
|
396
321
|
</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>
|
403
322
|
<hr>
|
404
323
|
<div class="refsect2">
|
405
|
-
<a name="rsvg-pixbuf-from-file-at-zoom-with-max"></a><h3>rsvg_pixbuf_from_file_at_zoom_with_max
|
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
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
<
|
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>
|
324
|
+
<a name="rsvg-pixbuf-from-file-at-zoom-with-max"></a><h3>rsvg_pixbuf_from_file_at_zoom_with_max ()</h3>
|
325
|
+
<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> * rsvg_pixbuf_from_file_at_zoom_with_max
|
326
|
+
(<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> *file_name</code></em>,
|
327
|
+
<em class="parameter"><code><span class="type">double</span> x_zoom</code></em>,
|
328
|
+
<em class="parameter"><code><span class="type">double</span> y_zoom</code></em>,
|
329
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_width</code></em>,
|
330
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_height</code></em>,
|
331
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
332
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
333
|
+
<h3 class="title">Warning</h3>
|
334
|
+
<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="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>
|
417
335
|
</div>
|
418
|
-
<p>
|
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
|
336
|
+
<p>
|
337
|
+
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> and returns it. This pixbuf is scaled
|
338
|
+
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
|
423
339
|
resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
|
424
340
|
down to fit in that rectangle. The caller must assume the reference to the
|
425
|
-
returned pixbuf. If an error occurred, <em class="parameter"><code>error</code></em>
|
426
|
-
|
427
|
-
<div class="
|
428
|
-
<a name="id-1.2.6.5.8.6"></a><h4>Parameters</h4>
|
429
|
-
<div class="informaltable"><table width="100%" border="0">
|
341
|
+
returned pixbuf. If an error occurred, <em class="parameter"><code>error</code></em> is set and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.
|
342
|
+
</p>
|
343
|
+
<div class="variablelist"><table border="0" class="variablelist">
|
430
344
|
<colgroup>
|
431
|
-
<col
|
432
|
-
<col
|
433
|
-
<col width="200px" class="parameters_annotations">
|
345
|
+
<col align="left" valign="top">
|
346
|
+
<col>
|
434
347
|
</colgroup>
|
435
348
|
<tbody>
|
436
349
|
<tr>
|
437
|
-
<td class="
|
438
|
-
<td
|
439
|
-
<td class="parameter_annotations"> </td>
|
350
|
+
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
|
351
|
+
<td>A file name</td>
|
440
352
|
</tr>
|
441
353
|
<tr>
|
442
|
-
<td class="
|
443
|
-
<td
|
444
|
-
<td class="parameter_annotations"> </td>
|
354
|
+
<td><p><span class="term"><em class="parameter"><code>x_zoom</code></em> :</span></p></td>
|
355
|
+
<td>The horizontal zoom factor</td>
|
445
356
|
</tr>
|
446
357
|
<tr>
|
447
|
-
<td class="
|
448
|
-
<td
|
449
|
-
<td class="parameter_annotations"> </td>
|
358
|
+
<td><p><span class="term"><em class="parameter"><code>y_zoom</code></em> :</span></p></td>
|
359
|
+
<td>The vertical zoom factor</td>
|
450
360
|
</tr>
|
451
361
|
<tr>
|
452
|
-
<td class="
|
453
|
-
<td
|
454
|
-
<td class="parameter_annotations"> </td>
|
362
|
+
<td><p><span class="term"><em class="parameter"><code>max_width</code></em> :</span></p></td>
|
363
|
+
<td>The requested max width</td>
|
455
364
|
</tr>
|
456
365
|
<tr>
|
457
|
-
<td class="
|
458
|
-
<td
|
459
|
-
<td class="parameter_annotations"> </td>
|
366
|
+
<td><p><span class="term"><em class="parameter"><code>max_height</code></em> :</span></p></td>
|
367
|
+
<td>The requested max heigh</td>
|
460
368
|
</tr>
|
461
369
|
<tr>
|
462
|
-
<td class="
|
463
|
-
<td
|
464
|
-
|
370
|
+
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
371
|
+
<td>return location for errors</td>
|
372
|
+
</tr>
|
373
|
+
<tr>
|
374
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
375
|
+
<td>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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
376
|
+
</td>
|
465
377
|
</tr>
|
466
378
|
</tbody>
|
467
379
|
</table></div>
|
468
380
|
</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>
|
478
381
|
</div>
|
479
382
|
</div>
|
480
383
|
<div class="footer">
|
481
384
|
<hr>
|
482
|
-
Generated by GTK-Doc V1.
|
385
|
+
Generated by GTK-Doc V1.19</div>
|
483
386
|
</body>
|
484
387
|
</html>
|