summaryrefslogtreecommitdiff
path: root/doc/public/html/cairo-PS-Backend.html
blob: cf2c53c9dc92b1e76443173d2659c35373f6b726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>PS Backend</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="Cairo: A Vector Graphics Library"><link rel="up" href="pt02.html" title="Part II. Reference"><link rel="previous" href="cairo-PNG-Backend.html" title="PNG Backend"><link rel="next" href="cairo-Quartz-Backend.html" title="Quartz Backend"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="pt01.html" title="Part I. Tutorial"><link rel="part" href="pt02.html" title="Part II. Reference"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="cairo-PNG-Backend.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="pt02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">Cairo: A Vector Graphics Library</th><td><a accesskey="n" href="cairo-Quartz-Backend.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="cairo-PS-Backend"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">PS Backend</span></h2><p>PS Backend &#8212; </p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">



void        <a href="cairo-PS-Backend.html#cairo-set-target-ps">cairo_set_target_ps</a>             (<a href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
                                             FILE *file,
                                             double width_inches,
                                             double height_inches,
                                             double x_pixels_per_inch,
                                             double y_pixels_per_inch);
<a href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a href="cairo-PS-Backend.html#cairo-ps-surface-create">cairo_ps_surface_create</a>    (FILE *file,
                                             double width_inches,
                                             double height_inches,
                                             double x_pixels_per_inch,
                                             double y_pixels_per_inch);
</pre></div><div class="refsect1" lang="en"><a name="id2742152"></a><h2>Description</h2><p>

</p></div><div class="refsect1" lang="en"><a name="id2742161"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2742167"></a><h3><a name="cairo-set-target-ps"></a>cairo_set_target_ps ()</h3><a class="indexterm" name="id2742175"></a><pre class="programlisting">void        cairo_set_target_ps             (<a href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
                                             FILE *file,
                                             double width_inches,
                                             double height_inches,
                                             double x_pixels_per_inch,
                                             double y_pixels_per_inch);</pre><p>
Directs output for a <a href="cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> to a postscript file. The file must
be kept open until the <a href="cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> is destroyed or set to have a
different target, and then must be closed by the application.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>cr</tt></i> :</span></td><td> a <a href="cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>file</tt></i> :</span></td><td> an open, writeable file
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width_inches</tt></i> :</span></td><td> width of the output page, in inches
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height_inches</tt></i> :</span></td><td> height of the output page, in inches
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x_pixels_per_inch</tt></i> :</span></td><td> X resolution to use for image fallbacks;
  not all Cairo drawing can be represented in a postscript
  file, so Cairo will write out images for some portions
  of the output.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y_pixels_per_inch</tt></i> :</span></td><td> Y resolution to use for image fallbacks.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2741578"></a><h3><a name="cairo-ps-surface-create"></a>cairo_ps_surface_create ()</h3><a class="indexterm" name="id2741587"></a><pre class="programlisting"><a href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_ps_surface_create    (FILE *file,
                                             double width_inches,
                                             double height_inches,
                                             double x_pixels_per_inch,
                                             double y_pixels_per_inch);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>file</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width_inches</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height_inches</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x_pixels_per_inch</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y_pixels_per_inch</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>


</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="cairo-PNG-Backend.html"><b>&lt;&lt; PNG Backend</b></a></td><td align="right"><a accesskey="n" href="cairo-Quartz-Backend.html"><b>Quartz Backend &gt;&gt;</b></a></td></tr></table></body></html>