rsvg2 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +35 -0
- data/Rakefile +69 -0
- data/ext/rsvg2/depend +6 -0
- data/ext/rsvg2/extconf.rb +89 -0
- data/ext/rsvg2/rbrsvg.c +206 -0
- data/ext/rsvg2/rbrsvgdimensiondata.c +194 -0
- data/ext/rsvg2/rbrsvghandle.c +496 -0
- data/ext/rsvg2/rsvg2.def +2 -0
- data/ext/rsvg2/rsvg2.h +70 -0
- data/extconf.rb +49 -0
- 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 +33 -0
- data/sample/svg-viewer.rb +44 -0
- data/sample/svg2.rb +60 -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 +87 -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/libcroco-0.6/libcroco/cr-additional-sel.h +98 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-attr-sel.h +74 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-cascade.h +74 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-declaration.h +136 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-doc-handler.h +298 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-enc-handler.h +94 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-fonts.h +315 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-input.h +174 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-num.h +127 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-om-parser.h +98 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-parser.h +128 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-parsing-location.h +70 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-prop-list.h +80 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-pseudo.h +64 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-rgb.h +94 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-sel-eng.h +110 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-selector.h +95 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-simple-sel.h +130 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-statement.h +440 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-string.h +76 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-style.h +339 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-stylesheet.h +102 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-term.h +190 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-tknzr.h +115 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-token.h +212 -0
- data/vendor/local/include/libcroco-0.6/libcroco/cr-utils.h +246 -0
- data/vendor/local/include/libcroco-0.6/libcroco/libcroco-config.h +17 -0
- data/vendor/local/include/libcroco-0.6/libcroco/libcroco.h +44 -0
- data/vendor/local/include/librsvg-2.0/librsvg/librsvg-enum-types.h +24 -0
- data/vendor/local/include/librsvg-2.0/librsvg/librsvg-features.h +28 -0
- data/vendor/local/include/librsvg-2.0/librsvg/rsvg-cairo.h +42 -0
- data/vendor/local/include/librsvg-2.0/librsvg/rsvg.h +264 -0
- 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 +41 -0
- 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 +41 -0
- data/vendor/local/lib/pkgconfig/libcroco-0.6.pc +11 -0
- data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +15 -0
- data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +754 -0
- data/vendor/local/share/gtk-doc/html/libcroco/ch01.html +113 -0
- data/vendor/local/share/gtk-doc/html/libcroco/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/index.html +109 -0
- data/vendor/local/share/gtk-doc/html/libcroco/index.sgml +582 -0
- data/vendor/local/share/gtk-doc/html/libcroco/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-additional-sel.html +337 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-attr-sel.html +203 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-cascade.html +240 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-declaration.html +642 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-doc-handler.html +517 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-enc-handler.html +164 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-fonts.html +670 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-input.html +1102 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-num.html +265 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-om-parser.html +380 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parser.html +913 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parsing-location.html +205 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-prop-list.html +421 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-pseudo.html +141 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-rgb.html +503 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-sel-eng.html +346 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-selector.html +246 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-simple-sel.html +240 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-statement.html +1408 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-string.html +137 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-style.html +384 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-stylesheet.html +158 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-term.html +304 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-tknzr.html +312 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-token.html +428 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-utils.html +334 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-libcroco-config.html +80 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco.devhelp2 +511 -0
- data/vendor/local/share/gtk-doc/html/libcroco/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/style.css +266 -0
- data/vendor/local/share/gtk-doc/html/libcroco/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +1420 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +55 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +55 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +43 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +47 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +46 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +39 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +54 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +53 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +100 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +323 -0
- 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 +88 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +106 -0
- 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 +57 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +38 -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/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +94 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +360 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +484 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +154 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +142 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +57 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +476 -0
- 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
- data/vendor/local/share/license/libcroco/AUTHORS +13 -0
- data/vendor/local/share/license/libcroco/COPYING +481 -0
- data/vendor/local/share/license/libcroco/COPYING.LIB +481 -0
- data/vendor/local/share/license/librsvg/AUTHORS +1 -0
- data/vendor/local/share/license/librsvg/COPYING +340 -0
- data/vendor/local/share/license/librsvg/COPYING.LIB +482 -0
- data/vendor/local/share/man/man1/rsvg-convert.1 +55 -0
- metadata +209 -0
@@ -0,0 +1,484 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>RSVG Libary Reference Manual: Using RSVG with GdkPixbuf</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
|
+
<link rel="home" href="index.html" title="RSVG Libary Reference Manual">
|
8
|
+
<link rel="up" href="rsvg.html" title="Part I. API Reference">
|
9
|
+
<link rel="prev" href="rsvg-Using-RSVG-with-cairo.html" title="Using RSVG with cairo">
|
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.21 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts">
|
17
|
+
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
+
<a href="#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>
|
25
|
+
<div class="refentry">
|
26
|
+
<a name="rsvg-Using-RSVG-with-GdkPixbuf"></a><div class="titlepage"></div>
|
27
|
+
<div class="refnamediv"><table width="100%"><tr>
|
28
|
+
<td valign="top">
|
29
|
+
<h2><span class="refentrytitle"><a name="rsvg-Using-RSVG-with-GdkPixbuf.top_of_page"></a>Using RSVG with GdkPixbuf</span></h2>
|
30
|
+
<p>Using RSVG with GdkPixbuf — How to render SVGs into GdkPixbufs, for easy use in GTK+
|
31
|
+
applications</p>
|
32
|
+
</td>
|
33
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
34
|
+
</tr></table></div>
|
35
|
+
<div class="refsect1">
|
36
|
+
<a name="rsvg-Using-RSVG-with-GdkPixbuf.functions"></a><h2>Functions</h2>
|
37
|
+
<div class="informaltable"><table width="100%" border="0">
|
38
|
+
<colgroup>
|
39
|
+
<col width="150px" class="functions_return">
|
40
|
+
<col class="functions_name">
|
41
|
+
</colgroup>
|
42
|
+
<tbody>
|
43
|
+
<tr>
|
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>
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
<tr>
|
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>
|
97
|
+
</td>
|
98
|
+
</tr>
|
99
|
+
</tbody>
|
100
|
+
</table></div>
|
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>
|
142
|
+
<hr>
|
143
|
+
<div class="refsect2">
|
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
|
150
|
+
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="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
152
|
+
will be returned. Note that the pixbuf may not be complete until
|
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">
|
158
|
+
<colgroup>
|
159
|
+
<col width="150px" class="parameters_name">
|
160
|
+
<col class="parameters_description">
|
161
|
+
<col width="200px" class="parameters_annotations">
|
162
|
+
</colgroup>
|
163
|
+
<tbody>
|
164
|
+
<tr>
|
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>
|
168
|
+
</tr>
|
169
|
+
<tr>
|
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>
|
175
|
+
</tr>
|
176
|
+
</tbody>
|
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>
|
185
|
+
<p class="since">Since 2.14</p>
|
186
|
+
</div>
|
187
|
+
<hr>
|
188
|
+
<div class="refsect2">
|
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.win64/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.win64/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>
|
196
|
+
</div>
|
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">
|
205
|
+
<colgroup>
|
206
|
+
<col width="150px" class="parameters_name">
|
207
|
+
<col class="parameters_description">
|
208
|
+
<col width="200px" class="parameters_annotations">
|
209
|
+
</colgroup>
|
210
|
+
<tbody>
|
211
|
+
<tr>
|
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>
|
215
|
+
</tr>
|
216
|
+
<tr>
|
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>
|
220
|
+
</tr>
|
221
|
+
</tbody>
|
222
|
+
</table></div>
|
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>
|
230
|
+
<hr>
|
231
|
+
<div class="refsect2">
|
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.win64/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.win64/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>
|
241
|
+
</div>
|
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
|
247
|
+
caller must assume the reference to the returned pixbuf. If an error
|
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">
|
253
|
+
<colgroup>
|
254
|
+
<col width="150px" class="parameters_name">
|
255
|
+
<col class="parameters_description">
|
256
|
+
<col width="200px" class="parameters_annotations">
|
257
|
+
</colgroup>
|
258
|
+
<tbody>
|
259
|
+
<tr>
|
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>
|
263
|
+
</tr>
|
264
|
+
<tr>
|
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>
|
268
|
+
</tr>
|
269
|
+
<tr>
|
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>
|
273
|
+
</tr>
|
274
|
+
<tr>
|
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>
|
278
|
+
</tr>
|
279
|
+
</tbody>
|
280
|
+
</table></div>
|
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>
|
288
|
+
<hr>
|
289
|
+
<div class="refsect2">
|
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.win64/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.win64/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.win64/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.win64/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>
|
299
|
+
</div>
|
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
|
305
|
+
either of these are -1, then the default size of the image being loaded is
|
306
|
+
used. The caller must assume the reference to the returned pixbuf. If an
|
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">
|
312
|
+
<colgroup>
|
313
|
+
<col width="150px" class="parameters_name">
|
314
|
+
<col class="parameters_description">
|
315
|
+
<col width="200px" class="parameters_annotations">
|
316
|
+
</colgroup>
|
317
|
+
<tbody>
|
318
|
+
<tr>
|
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>
|
322
|
+
</tr>
|
323
|
+
<tr>
|
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>
|
327
|
+
</tr>
|
328
|
+
<tr>
|
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>
|
332
|
+
</tr>
|
333
|
+
<tr>
|
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>
|
337
|
+
</tr>
|
338
|
+
</tbody>
|
339
|
+
</table></div>
|
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>
|
347
|
+
<hr>
|
348
|
+
<div class="refsect2">
|
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.win64/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.win64/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.win64/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.win64/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>
|
358
|
+
</div>
|
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
|
361
|
+
scaled so that the it fits into a rectangle of size max_width * max_height. The
|
362
|
+
caller must assume the reference to the returned pixbuf. If an error occurred,
|
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">
|
368
|
+
<colgroup>
|
369
|
+
<col width="150px" class="parameters_name">
|
370
|
+
<col class="parameters_description">
|
371
|
+
<col width="200px" class="parameters_annotations">
|
372
|
+
</colgroup>
|
373
|
+
<tbody>
|
374
|
+
<tr>
|
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>
|
378
|
+
</tr>
|
379
|
+
<tr>
|
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>
|
383
|
+
</tr>
|
384
|
+
<tr>
|
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>
|
388
|
+
</tr>
|
389
|
+
<tr>
|
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>
|
393
|
+
</tr>
|
394
|
+
</tbody>
|
395
|
+
</table></div>
|
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>
|
403
|
+
<hr>
|
404
|
+
<div class="refsect2">
|
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.win64/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.win64/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.win64/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.win64/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>
|
417
|
+
</div>
|
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
|
423
|
+
resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
|
424
|
+
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
|
+
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">
|
430
|
+
<colgroup>
|
431
|
+
<col width="150px" class="parameters_name">
|
432
|
+
<col class="parameters_description">
|
433
|
+
<col width="200px" class="parameters_annotations">
|
434
|
+
</colgroup>
|
435
|
+
<tbody>
|
436
|
+
<tr>
|
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>
|
440
|
+
</tr>
|
441
|
+
<tr>
|
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>
|
445
|
+
</tr>
|
446
|
+
<tr>
|
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>
|
450
|
+
</tr>
|
451
|
+
<tr>
|
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>
|
455
|
+
</tr>
|
456
|
+
<tr>
|
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>
|
460
|
+
</tr>
|
461
|
+
<tr>
|
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>
|
465
|
+
</tr>
|
466
|
+
</tbody>
|
467
|
+
</table></div>
|
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>
|
478
|
+
</div>
|
479
|
+
</div>
|
480
|
+
<div class="footer">
|
481
|
+
<hr>
|
482
|
+
Generated by GTK-Doc V1.21</div>
|
483
|
+
</body>
|
484
|
+
</html>
|