]> git.sur5r.net Git - glabels/blob - docs/libglbarcode/html/libglbarcode-3.0-lgl-barcode-render-to-cairo.html
Imported Upstream version 3.4.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: LibGlbarcode 3.0 Reference Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.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.24 (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="#libglbarcode-3.0-lgl-barcode-render-to-cairo.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="api.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22 <td><a accesskey="p" href="libglbarcode-3.0-lgl-barcode-create.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23 <td><a accesskey="n" href="libglbarcode-3.0-lgl-barcode-type.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="libglbarcode-3.0-lgl-barcode-render-to-cairo"></a><div class="titlepage"></div>
27 <div class="refnamediv"><table width="100%"><tr>
28 <td valign="top">
29 <h2><span class="refentrytitle"><a name="libglbarcode-3.0-lgl-barcode-render-to-cairo.top_of_page"></a>Cairo Renderer</span></h2>
30 <p>Cairo Renderer — Render barcode to cairo context</p>
31 </td>
32 <td class="gallery_image" valign="top" align="right"></td>
33 </tr></table></div>
34 <div class="refsect1">
35 <a name="libglbarcode-3.0-lgl-barcode-render-to-cairo.functions"></a><h2>Functions</h2>
36 <div class="informaltable"><table width="100%" border="0">
37 <colgroup>
38 <col width="150px" class="functions_return">
39 <col class="functions_name">
40 </colgroup>
41 <tbody>
42 <tr>
43 <td class="function_type">
44 <span class="returnvalue">void</span>
45 </td>
46 <td class="function_name">
47 <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> <span class="c_punctuation">()</span>
48 </td>
49 </tr>
50 <tr>
51 <td class="function_type">
52 <span class="returnvalue">void</span>
53 </td>
54 <td class="function_name">
55 <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> <span class="c_punctuation">()</span>
56 </td>
57 </tr>
58 </tbody>
59 </table></div>
60 </div>
61 <div class="refsect1">
62 <a name="libglbarcode-3.0-lgl-barcode-render-to-cairo.includes"></a><h2>Includes</h2>
63 <pre class="synopsis">#include &lt;libglbarcode/lgl-barcode-render-to-cairo.h&gt;
64 </pre>
65 </div>
66 <div class="refsect1">
67 <a name="libglbarcode-3.0-lgl-barcode-render-to-cairo.description"></a><h2>Description</h2>
68 <p>
69 This section describes the cairo barcode renderer.
70 </p>
71 </div>
72 <div class="refsect1">
73 <a name="libglbarcode-3.0-lgl-barcode-render-to-cairo.functions_details"></a><h2>Functions</h2>
74 <div class="refsect2">
75 <a name="lgl-barcode-render-to-cairo"></a><h3>lgl_barcode_render_to_cairo ()</h3>
76 <pre class="programlisting"><span class="returnvalue">void</span>
77 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>,
78                              <em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);</pre>
79 <p>Render barcode to cairo context.  Context should be prepared with desired
80 translation and appropriate scale.  Context should be translated such that
81 the origin is at the desired location of the upper left hand corner of the
82 barcode bounding box.  Context should be scaled such that all dimensions
83 are in points ( 1 point = 1/72 inch ) and that positive y coordinates
84 go down the surface.</p>
85 <div class="refsect3">
86 <a name="id-1.3.4.6.2.5"></a><h4>Parameters</h4>
87 <div class="informaltable"><table width="100%" border="0">
88 <colgroup>
89 <col width="150px" class="parameters_name">
90 <col class="parameters_description">
91 <col width="200px" class="parameters_annotations">
92 </colgroup>
93 <tbody>
94 <tr>
95 <td class="parameter_name"><p>bc</p></td>
96 <td class="parameter_description"><p>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</p></td>
97 <td class="parameter_annotations"> </td>
98 </tr>
99 <tr>
100 <td class="parameter_name"><p>cr</p></td>
101 <td class="parameter_description"><p>A <span class="type">cairo_t</span> context</p></td>
102 <td class="parameter_annotations"> </td>
103 </tr>
104 </tbody>
105 </table></div>
106 </div>
107 </div>
108 <hr>
109 <div class="refsect2">
110 <a name="lgl-barcode-render-to-cairo-path"></a><h3>lgl_barcode_render_to_cairo_path ()</h3>
111 <pre class="programlisting"><span class="returnvalue">void</span>
112 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>,
113                                   <em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>);</pre>
114 <p>Render barcode to cairo context, but only create a path to be filled or
115 tested against.  Context should be prepared with desired
116 translation and appropriate scale.  Context should be translated such that
117 the origin is at the desired location of the upper left hand corner of the
118 barcode bounding box.  Context should be scaled such that all dimensions
119 are in points ( 1 point = 1/72 inch ) and that positive y coordinates
120 go down the surface.</p>
121 <div class="refsect3">
122 <a name="id-1.3.4.6.3.5"></a><h4>Parameters</h4>
123 <div class="informaltable"><table width="100%" border="0">
124 <colgroup>
125 <col width="150px" class="parameters_name">
126 <col class="parameters_description">
127 <col width="200px" class="parameters_annotations">
128 </colgroup>
129 <tbody>
130 <tr>
131 <td class="parameter_name"><p>bc</p></td>
132 <td class="parameter_description"><p>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</p></td>
133 <td class="parameter_annotations"> </td>
134 </tr>
135 <tr>
136 <td class="parameter_name"><p>cr</p></td>
137 <td class="parameter_description"><p>A <span class="type">cairo_t</span> context</p></td>
138 <td class="parameter_annotations"> </td>
139 </tr>
140 </tbody>
141 </table></div>
142 </div>
143 </div>
144 </div>
145 <div class="refsect1">
146 <a name="libglbarcode-3.0-lgl-barcode-render-to-cairo.other_details"></a><h2>Types and Values</h2>
147 </div>
148 </div>
149 <div class="footer">
150 <hr>Generated by GTK-Doc V1.24</div>
151 </body>
152 </html>