Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > ae5f5ea67b2d15b5d673782dfd2069cf > files > 159

libwmf-0.2.8.3-6.4.20060mdk.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>recorder.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
<hr><h1>recorder.c File Reference</h1><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a7">wmf_canvas</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, unsigned short width, unsigned short height, unsigned short dpi)</td></tr>
<tr><td nowrap align=right valign=top>unsigned char *&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a8">wmf_canvas_done</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned char **buffer, unsigned long *length)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a9">wmf_canvas_set_pen</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short line, unsigned short endcap, unsigned short join, unsigned short width, <a class="el" href="ipa_8h.html#a0">wmfRGB</a> color)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a10">wmf_canvas_set_brush</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short style, unsigned short hatch, <a class="el" href="ipa_8h.html#a0">wmfRGB</a> color)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a11">wmf_canvas_set_font</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, const char *name, unsigned short size, unsigned short orient, unsigned short weight, unsigned short italic, unsigned short strike, unsigned short uscore, unsigned short encode, unsigned short pitch)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a20">wmf_canvas_set_polyfill</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short mode)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a22">wmf_canvas_set_background</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short mode)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a24">wmf_canvas_set_bgcolor</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, <a class="el" href="ipa_8h.html#a0">wmfRGB</a> color)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a26">wmf_canvas_set_textcolor</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, <a class="el" href="ipa_8h.html#a0">wmfRGB</a> color)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a28">wmf_canvas_line</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a31">wmf_canvas_roundrect</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short left, unsigned short top, unsigned short right, unsigned short bottom, unsigned short rx, unsigned short ry)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a32">wmf_canvas_rect</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short left, unsigned short top, unsigned short right, unsigned short bottom)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a33">wmf_canvas_ellipse</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short left, unsigned short top, unsigned short right, unsigned short bottom)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a34">wmf_canvas_arc</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short left, unsigned short top, unsigned short right, unsigned short bottom, unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, <a class="el" href="canvas_8h.html#a1">wmf_canvas_arc_t</a> type)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a35">wmf_canvas_polyline</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short *x, unsigned short *y, unsigned short N)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a36">wmf_canvas_polygon</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short *x, unsigned short *y, unsigned short N)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a37">wmf_canvas_polygons</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short count, unsigned short **x, unsigned short **y, unsigned short *N)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a38">wmf_canvas_text</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short x, unsigned short y, const char *str)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="recorder_8c.html#a39">wmf_canvas_bitmap</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *API, <a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *canvas, unsigned short x, unsigned short y, unsigned short width, unsigned short height, const unsigned char *buffer, unsigned long length)</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a name="a7" doxytag="recorder.c::wmf_canvas"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="canvas_8h.html#a0">wmfCanvas</a>* wmf_canvas </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>width</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>height</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>dpi</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get a handle for creating a new metafile.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>width</em>&nbsp;</td><td>
width in 'dots' (a.k.a. 'twips'?) </td></tr>
<tr><td valign=top><em>height</em>&nbsp;</td><td>
height in 'dots' (a.k.a. 'twips'?) </td></tr>
<tr><td valign=top><em>dpi</em>&nbsp;</td><td>
dots per inch: one of 1440, 2880, 720, or 360</td></tr>
</table>
</dl>In case you want to use simple drawing routines to create your own metafile; all drawing commands expect a wmfCanvas handle as well as the API handle.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on failure. </dl>    </td>
  </tr>
</table>
<a name="a34" doxytag="recorder.c::wmf_canvas_arc"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_arc </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>left</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>top</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>right</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>bottom</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>x1</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>y1</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>x2</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>y2</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a1">wmf_canvas_arc_t</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>type</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draw an arc, open or fill as chord or pie.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>left</em>&nbsp;</td><td>
lower x-coordinate </td></tr>
<tr><td valign=top><em>top</em>&nbsp;</td><td>
lower y-coordinate </td></tr>
<tr><td valign=top><em>right</em>&nbsp;</td><td>
upper x-coordinate </td></tr>
<tr><td valign=top><em>bottom</em>&nbsp;</td><td>
upper y-coordinate </td></tr>
<tr><td valign=top><em>x1</em>&nbsp;</td><td>
x-coordinate of start of arc </td></tr>
<tr><td valign=top><em>y1</em>&nbsp;</td><td>
y-coordinate of start of arc </td></tr>
<tr><td valign=top><em>x2</em>&nbsp;</td><td>
x-coordinate of end of arc </td></tr>
<tr><td valign=top><em>y2</em>&nbsp;</td><td>
y-coordinate of end of arc </td></tr>
<tr><td valign=top><em>type</em>&nbsp;</td><td>
arc type (open, chord or pie)</td></tr>
</table>
</dl>Draw an arc in the given bounding box, from (x1,y1) to (x2,y2). Coordinate origin is at the top-left, y increasing down.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a39" doxytag="recorder.c::wmf_canvas_bitmap"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_bitmap </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>width</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>height</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const unsigned char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>buffer</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned long&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>length</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Place a bitmap.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>x</em>&nbsp;</td><td>
x-coordinate of bitmap </td></tr>
<tr><td valign=top><em>y</em>&nbsp;</td><td>
y-coordinate of bitmap </td></tr>
<tr><td valign=top><em>width</em>&nbsp;</td><td>
(scaled) width of bitmap </td></tr>
<tr><td valign=top><em>height</em>&nbsp;</td><td>
(scaled) height of bitmap </td></tr>
<tr><td valign=top><em>buffer</em>&nbsp;</td><td>
buffer containing bitmap </td></tr>
<tr><td valign=top><em>length</em>&nbsp;</td><td>
length of buffer</td></tr>
</table>
</dl>Place a bitmap.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a8" doxytag="recorder.c::wmf_canvas_done"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> unsigned char* wmf_canvas_done </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned char **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>buffer</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned long *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>length</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Last command when creating a new metafile; returns the metafile you have drawn.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>buffer</em>&nbsp;</td><td>
metafile buffer return </td></tr>
<tr><td valign=top><em>length</em>&nbsp;</td><td>
metafile length return</td></tr>
</table>
</dl>Cleans up memory etc. associated with the canvas process, except of course for the new metafile itself which gets returned.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on failure, *buffer on success </dl>    </td>
  </tr>
</table>
<a name="a33" doxytag="recorder.c::wmf_canvas_ellipse"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_ellipse </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>left</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>top</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>right</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>bottom</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draw an ellipse.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>left</em>&nbsp;</td><td>
lower x-coordinate </td></tr>
<tr><td valign=top><em>top</em>&nbsp;</td><td>
lower y-coordinate </td></tr>
<tr><td valign=top><em>right</em>&nbsp;</td><td>
upper x-coordinate </td></tr>
<tr><td valign=top><em>bottom</em>&nbsp;</td><td>
upper y-coordinate</td></tr>
</table>
</dl>Draw an ellipse in the given bounding box. Coordinate origin is at the top-left, y increasing down.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a28" doxytag="recorder.c::wmf_canvas_line"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_line </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>x1</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>y1</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>x2</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>y2</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draw a line.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>x1</em>&nbsp;</td><td>
x-coordinate of start point </td></tr>
<tr><td valign=top><em>y1</em>&nbsp;</td><td>
y-coordinate of start point </td></tr>
<tr><td valign=top><em>x2</em>&nbsp;</td><td>
x-coordinate of end point </td></tr>
<tr><td valign=top><em>y2</em>&nbsp;</td><td>
y-coordinate of end point</td></tr>
</table>
</dl>Draw line from (x1,y1) to (x2,y2).
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a36" doxytag="recorder.c::wmf_canvas_polygon"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_polygon </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>N</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draw a polygon.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>x</em>&nbsp;</td><td>
array of N x-coordinates </td></tr>
<tr><td valign=top><em>y</em>&nbsp;</td><td>
array of N y-coordinates </td></tr>
<tr><td valign=top><em>N</em>&nbsp;</td><td>
number of points of polygon</td></tr>
</table>
</dl>Draw a polygon.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a37" doxytag="recorder.c::wmf_canvas_polygons"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_polygons </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>count</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>N</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draw a set of polygons.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>count</em>&nbsp;</td><td>
number of polygons [i = 0..count-1] </td></tr>
<tr><td valign=top><em>x</em>&nbsp;</td><td>
x[i] is array of N x-coordinates in ith polygon </td></tr>
<tr><td valign=top><em>y</em>&nbsp;</td><td>
y[i] is array of N y-coordinates in ith polygon </td></tr>
<tr><td valign=top><em>N</em>&nbsp;</td><td>
N[i] is number of points of ith polygon</td></tr>
</table>
</dl>Draw a set of polygons.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a35" doxytag="recorder.c::wmf_canvas_polyline"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_polyline </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>N</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draw a line connecting a sequence of points.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>x</em>&nbsp;</td><td>
array of N x-coordinates </td></tr>
<tr><td valign=top><em>y</em>&nbsp;</td><td>
array of N y-coordinates </td></tr>
<tr><td valign=top><em>N</em>&nbsp;</td><td>
number of points on line</td></tr>
</table>
</dl>Draw a line connecting a sequence of points.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a32" doxytag="recorder.c::wmf_canvas_rect"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_rect </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>left</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>top</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>right</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>bottom</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draw a rectangle.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>left</em>&nbsp;</td><td>
lower x-coordinate </td></tr>
<tr><td valign=top><em>top</em>&nbsp;</td><td>
lower y-coordinate </td></tr>
<tr><td valign=top><em>right</em>&nbsp;</td><td>
upper x-coordinate </td></tr>
<tr><td valign=top><em>bottom</em>&nbsp;</td><td>
upper y-coordinate</td></tr>
</table>
</dl>Draw a rectangle. Coordinate origin is at the top-left, y increasing down.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a31" doxytag="recorder.c::wmf_canvas_roundrect"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_roundrect </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>left</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>top</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>right</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>bottom</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>rx</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>ry</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draw a rounded rectangle.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>left</em>&nbsp;</td><td>
lower x-coordinate </td></tr>
<tr><td valign=top><em>top</em>&nbsp;</td><td>
lower y-coordinate </td></tr>
<tr><td valign=top><em>right</em>&nbsp;</td><td>
upper x-coordinate </td></tr>
<tr><td valign=top><em>bottom</em>&nbsp;</td><td>
upper y-coordinate </td></tr>
<tr><td valign=top><em>rx</em>&nbsp;</td><td>
x-axis of corner ellipse </td></tr>
<tr><td valign=top><em>ry</em>&nbsp;</td><td>
y-axis of corner ellipse</td></tr>
</table>
</dl>Draw a rounded rectangle. Coordinate origin is at the top-left, y increasing down.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a22" doxytag="recorder.c::wmf_canvas_set_background"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_set_background </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>mode</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set background mode.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>mode</em>&nbsp;</td><td>
one of TRANSPARENT or OPAQUE</td></tr>
</table>
</dl>Set background mode.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a24" doxytag="recorder.c::wmf_canvas_set_bgcolor"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_set_bgcolor </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="ipa_8h.html#a0">wmfRGB</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>color</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set background color.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>color</em>&nbsp;</td><td>
background color</td></tr>
</table>
</dl>Set background color.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a10" doxytag="recorder.c::wmf_canvas_set_brush"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_set_brush </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>style</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>hatch</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="ipa_8h.html#a0">wmfRGB</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>color</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Change current brush style.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>style</em>&nbsp;</td><td>
one of BS_SOLID, BS_NULL, or BS_HATCHED </td></tr>
<tr><td valign=top><em>hatch</em>&nbsp;</td><td>
one of HS_HORIZONTAL, HS_VERTICAL, HS_FDIAGONAL, HS_BDIAGONAL, HS_CROSS or HS_DIAGCROSS </td></tr>
<tr><td valign=top><em>color</em>&nbsp;</td><td>
stroke color</td></tr>
</table>
</dl>Brush settings to be used with next drawing command.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a11" doxytag="recorder.c::wmf_canvas_set_font"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_set_font </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>size</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>orient</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>weight</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>italic</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>strike</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>uscore</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>encode</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>pitch</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Change current font.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
font name </td></tr>
<tr><td valign=top><em>size</em>&nbsp;</td><td>
font height (in twips) </td></tr>
<tr><td valign=top><em>orient</em>&nbsp;</td><td>
text rotation in tenths of degrees </td></tr>
<tr><td valign=top><em>weight</em>&nbsp;</td><td>
400 for normal text, 700 for bold </td></tr>
<tr><td valign=top><em>italic</em>&nbsp;</td><td>
0 for normal text, 1 for oblique/italic </td></tr>
<tr><td valign=top><em>strike</em>&nbsp;</td><td>
0 for normal text, 1 for strike-through </td></tr>
<tr><td valign=top><em>uscore</em>&nbsp;</td><td>
0 for normal text, 1 for underscore (I think; and 2 for double uscore ??) </td></tr>
<tr><td valign=top><em>encode</em>&nbsp;</td><td>
encoding; 0 for most fonts, 2 for symbol fonts; presumably others... </td></tr>
<tr><td valign=top><em>pitch</em>&nbsp;</td><td>
italic angle; usually 0 (webdings), 16 (times), 32 (arial) or 48 (courier)</td></tr>
</table>
</dl>Font settings to be used with next drawing command.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a9" doxytag="recorder.c::wmf_canvas_set_pen"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_set_pen </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>line</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>endcap</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>join</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>width</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="ipa_8h.html#a0">wmfRGB</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>color</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Change current pen style.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>line</em>&nbsp;</td><td>
one of PS_SOLID, PS_DASH, PS_DOT, PS_DASHDOT, PS_DASHDOTDOT, PS_NULL, PS_INSIDEFRAME, PS_USERSTYLE, or PS_ALTERNATE </td></tr>
<tr><td valign=top><em>endcap</em>&nbsp;</td><td>
one of PS_ENDCAP_ROUND, PS_ENDCAP_SQUARE, or PS_ENDCAP_FLAT </td></tr>
<tr><td valign=top><em>join</em>&nbsp;</td><td>
one of PS_JOIN_ROUND, PS_JOIN_BEVEL, or PS_JOIN_MITER </td></tr>
<tr><td valign=top><em>width</em>&nbsp;</td><td>
stroke width </td></tr>
<tr><td valign=top><em>color</em>&nbsp;</td><td>
stroke color</td></tr>
</table>
</dl>Pen settings to be used with next drawing command.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a20" doxytag="recorder.c::wmf_canvas_set_polyfill"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_set_polyfill </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>mode</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set polygon fill mode.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>mode</em>&nbsp;</td><td>
one of ALTERNATE or WINDING</td></tr>
</table>
</dl>Set polygon fill mode.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a26" doxytag="recorder.c::wmf_canvas_set_textcolor"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_set_textcolor </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="ipa_8h.html#a0">wmfRGB</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>color</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set text color.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>color</em>&nbsp;</td><td>
text color</td></tr>
</table>
</dl>Set text color.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<a name="a38" doxytag="recorder.c::wmf_canvas_text"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int wmf_canvas_text </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>API</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="canvas_8h.html#a0">wmfCanvas</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>canvas</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>x</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>y</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>str</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draw text.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>API</em>&nbsp;</td><td>
the API handle </td></tr>
<tr><td valign=top><em>canvas</em>&nbsp;</td><td>
the Canvas handle for the metafile you are drawing to </td></tr>
<tr><td valign=top><em>x</em>&nbsp;</td><td>
x-coordinate of string </td></tr>
<tr><td valign=top><em>y</em>&nbsp;</td><td>
y-coordinate of string </td></tr>
<tr><td valign=top><em>str</em>&nbsp;</td><td>
the text string to be drawn</td></tr>
</table>
</dl>Draw text.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Returns 0 on success. </dl>    </td>
  </tr>
</table>
<hr><address style="align: right;"><small>Generated on Tue Dec 10 19:53:51 2002 for libwmf by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.18 </small></address>
</body>
</html>