summaryrefslogtreecommitdiff
path: root/doc/reference/xml/cairo_set_target_png.xml
blob: 8577fa16085b1780c2b1661ece9e4e5726f2dfba (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
<refentry id="cairo_set_target_png">
  <refmeta>
    <refentrytitle>cairo_set_target_png</refentrytitle>
    <manvolnum>3</manvolnum>
  </refmeta>
  <refnamediv>
    <refname>cairo_set_target_png</refname>
    <refpurpose>set surface for painting operations </refpurpose>
  </refnamediv>
  <refsynopsisdiv>
    <programlisting>void cairo_set_target_png (<link linkend="cairo_t">cairo_t</link> *cr, FILE *file, <link linkend="cairo_format_t">cairo_format_t</link> format, int width, int height);</programlisting>
    <variablelist role="params">
      <varlistentry>
        <term><parameter>cr</parameter> :</term>
        <listitem>
          <simpara>a <link linkend="cairo_t">cairo_t</link></simpara>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term><parameter>FILE</parameter> :</term>
        <listitem>
          <simpara>an open, writeable file</simpara>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term><parameter><link linkend="cairo_format_t">cairo_format_t</link></parameter> :</term>
        <listitem>
          <simpara>determines the color-depth of the resulting png image</simpara>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term><parameter>width, height</parameter> :</term>
        <listitem>
          <simpara>sets width and height of resulting png image </simpara>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsynopsisdiv>
  <refsect1>
    <title>Description</title>
    <para>
      <indexterm>
        <primary>functions</primary>
        <secondary>cairo_set_target_png</secondary>
      </indexterm>
      <indexterm>
        <primary/>
      </indexterm>
    </para>
  </refsect1>
</refentry>