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