Current File : //proc/self/root/kunden/usr/share/gtk-doc/html/rsvg-2.0/recommendations-assets.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Recommendations for applications with SVG assets: Librsvg Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Librsvg Reference Manual">
<link rel="up" href="ch02.html" title="Recommendations for Applications">
<link rel="prev" href="ch02.html" title="Recommendations for Applications">
<link rel="next" href="RsvgHandle.html" title="RsvgHandle">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ch02.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="RsvgHandle.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="recommendations-assets"></a>Recommendations for applications with SVG assets</h2></div></div></div>
<p>
Before librsvg 2.46, applications would normally load an SVG
asset, then they would query librsvg for the SVG's size,
and then they would compute the dimensions of their user
interface based on the SVG's size.
</p>
<p>
With librsvg 2.46 and later, applications may have an easier
time by letting the UI choose whatever size it wants, or by
hardcoding a size for SVG assets, and then asking librsvg to
render SVG assets at that particular size. Applications can use
<code class="function">rsvg_handle_render_document</code>, which takes
a destination viewport, to do this in a single step.
</p>
<p>
To extract individual elements from an SVG document and render
them in arbitrary locations — for example, to extract a single
icon from a document full of icons —, applications can use
<code class="function">rsvg_handle_render_element</code>.
</p>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>