]> git.sur5r.net Git - glabels/blob - docs/libglbarcode/html/libglbarcode-3.0-lgl-barcode-render-to-cairo.html
Imported Upstream version 3.2.0
[glabels] / docs / libglbarcode / html / libglbarcode-3.0-lgl-barcode-render-to-cairo.html
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>Cairo Renderer</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="LibGlbarcode 3.0 Reference Manual">
8 <link rel="up" href="api.html" title="API Reference">
9 <link rel="prev" href="libglbarcode-3.0-lgl-barcode-create.html" title="Barcode Factory">
10 <link rel="next" href="libglbarcode-3.0-lgl-barcode-type.html" title="Barcode Types">
11 <meta name="generator" content="GTK-Doc V1.18 (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="2">
16 <tr valign="middle">
17 <td><a accesskey="p" href="libglbarcode-3.0-lgl-barcode-create.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="api.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">LibGlbarcode 3.0 Reference Manual</th>
21 <td><a accesskey="n" href="libglbarcode-3.0-lgl-barcode-type.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="#libglbarcode-3.0-lgl-barcode-render-to-cairo.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#libglbarcode-3.0-lgl-barcode-render-to-cairo.description" class="shortcut">Description</a>
27 </td></tr>
28 </table>
29 <div class="refentry">
30 <a name="libglbarcode-3.0-lgl-barcode-render-to-cairo"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
32 <td valign="top">
33 <h2><span class="refentrytitle"><a name="libglbarcode-3.0-lgl-barcode-render-to-cairo.top_of_page"></a>Cairo Renderer</span></h2>
34 <p>Cairo Renderer — Render barcode to cairo context</p>
35 </td>
36 <td valign="top" align="right"></td>
37 </tr></table></div>
38 <div class="refsynopsisdiv">
39 <a name="libglbarcode-3.0-lgl-barcode-render-to-cairo.synopsis"></a><h2>Synopsis</h2>
40 <pre class="synopsis">
41 #include &lt;libglbarcode/lgl-barcode-render-to-cairo.h&gt;
42
43 <span class="returnvalue">void</span>                <a class="link" href="libglbarcode-3.0-lgl-barcode-render-to-cairo.html#lgl-barcode-render-to-cairo" title="lgl_barcode_render_to_cairo ()">lgl_barcode_render_to_cairo</a>         (<em class="parameter"><code>const <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>,
44                                                          <em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);
45 <span class="returnvalue">void</span>                <a class="link" href="libglbarcode-3.0-lgl-barcode-render-to-cairo.html#lgl-barcode-render-to-cairo-path" title="lgl_barcode_render_to_cairo_path ()">lgl_barcode_render_to_cairo_path</a>    (<em class="parameter"><code>const <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>,
46                                                          <em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);
47 </pre>
48 </div>
49 <div class="refsect1">
50 <a name="libglbarcode-3.0-lgl-barcode-render-to-cairo.description"></a><h2>Description</h2>
51 <p>
52 This section describes the cairo barcode renderer.
53 </p>
54 </div>
55 <div class="refsect1">
56 <a name="libglbarcode-3.0-lgl-barcode-render-to-cairo.details"></a><h2>Details</h2>
57 <div class="refsect2">
58 <a name="lgl-barcode-render-to-cairo"></a><h3>lgl_barcode_render_to_cairo ()</h3>
59 <pre class="programlisting"><span class="returnvalue">void</span>                lgl_barcode_render_to_cairo         (<em class="parameter"><code>const <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>,
60                                                          <em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);</pre>
61 <p>
62 Render barcode to cairo context.  Context should be prepared with desired
63 translation and appropriate scale.  Context should be translated such that
64 the origin is at the desired location of the upper left hand corner of the
65 barcode bounding box.  Context should be scaled such that all dimensions
66 are in points ( 1 point = 1/72 inch ) and that positive y coordinates
67 go down the surface.
68 </p>
69 <div class="variablelist"><table border="0">
70 <col align="left" valign="top">
71 <tbody>
72 <tr>
73 <td><p><span class="term"><em class="parameter"><code>bc</code></em> :</span></p></td>
74 <td>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</td>
75 </tr>
76 <tr>
77 <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
78 <td>A <span class="type">cairo_t</span> context</td>
79 </tr>
80 </tbody>
81 </table></div>
82 </div>
83 <hr>
84 <div class="refsect2">
85 <a name="lgl-barcode-render-to-cairo-path"></a><h3>lgl_barcode_render_to_cairo_path ()</h3>
86 <pre class="programlisting"><span class="returnvalue">void</span>                lgl_barcode_render_to_cairo_path    (<em class="parameter"><code>const <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>,
87                                                          <em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);</pre>
88 <p>
89 Render barcode to cairo context, but only create a path to be filled or
90 tested against.  Context should be prepared with desired
91 translation and appropriate scale.  Context should be translated such that
92 the origin is at the desired location of the upper left hand corner of the
93 barcode bounding box.  Context should be scaled such that all dimensions
94 are in points ( 1 point = 1/72 inch ) and that positive y coordinates
95 go down the surface.
96 </p>
97 <div class="variablelist"><table border="0">
98 <col align="left" valign="top">
99 <tbody>
100 <tr>
101 <td><p><span class="term"><em class="parameter"><code>bc</code></em> :</span></p></td>
102 <td>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</td>
103 </tr>
104 <tr>
105 <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
106 <td>A <span class="type">cairo_t</span> context</td>
107 </tr>
108 </tbody>
109 </table></div>
110 </div>
111 </div>
112 </div>
113 <div class="footer">
114 <hr>
115           Generated by GTK-Doc V1.18</div>
116 </body>
117 </html>