<!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>gd.h 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> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> <hr><h1>gd.h File Reference</h1><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Data Structures</h2></td></tr> <tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="struct__wmf__gd__t_1_1__wmf__gd__sink.html">_wmf_gd_sink</a></td></tr> <tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="struct__wmf__gd__t.html">_wmf_gd_t</a></td></tr> <tr><td colspan=2><br><h2>Defines</h2></td></tr> <tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="gd_8h.html#a0">WMF_GD_SUPPORTS_PNG</a> (1 << 0)</td></tr> <tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="gd_8h.html#a1">WMF_GD_SUPPORTS_JPEG</a> (1 << 1)</td></tr> <tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="gd_8h.html#a2">WMF_GD_OUTPUT_FILE</a> (1 << 16)</td></tr> <tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="gd_8h.html#a3">WMF_GD_OUTPUT_MEMORY</a> (1 << 17)</td></tr> <tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="gd_8h.html#a4">WMF_GD_OWN_BUFFER</a> (1 << 18)</td></tr> <tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="gd_8h.html#a5">WMF_GD_GetData</a>(Z) ((<a class="el" href="gd_8h.html#a7">wmf_gd_t</a>*)((Z)->device_data))</td></tr> <tr><td colspan=2><br><h2>Typedefs</h2></td></tr> <tr><td nowrap align=right valign=top>typedef enum <a class="el" href="gd_8h.html#a13">_wmf_gd_subtype</a> </td><td valign=bottom><a class="el" href="gd_8h.html#a6">wmf_gd_subtype</a></td></tr> <tr><td nowrap align=right valign=top>typedef <a class="el" href="struct__wmf__gd__t.html">_wmf_gd_t</a> </td><td valign=bottom><a class="el" href="gd_8h.html#a7">wmf_gd_t</a></td></tr> <tr><td colspan=2><br><h2>Enumerations</h2></td></tr> <tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="gd_8h.html#a13">_wmf_gd_subtype</a> { <br> <a class="el" href="gd_8h.html#a13a8">wmf_gd_png</a> = 0, <br> <a class="el" href="gd_8h.html#a13a9">wmf_gd_jpeg</a>, <br> <a class="el" href="gd_8h.html#a13a10">wmf_gd_image</a> <br> }</td></tr> <tr><td colspan=2><br><h2>Functions</h2></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="gd_8h.html#a11">wmf_gd_function</a> (<a class="el" href="types_8h.html#a22">wmfAPI</a> *)</td></tr> <tr><td nowrap align=right valign=top>int * </td><td valign=bottom><a class="el" href="gd_8h.html#a12">wmf_gd_image_pixels</a> (void *gd_image)</td></tr> </table> <hr><h2>Define Documentation</h2> <a name="a5" doxytag="gd.h::WMF_GD_GetData"></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"> #define WMF_GD_GetData</td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">Z </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> ((<a class="el" href="gd_8h.html#a7">wmf_gd_t</a>*)((Z)->device_data)) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a2" doxytag="gd.h::WMF_GD_OUTPUT_FILE"></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"> #define WMF_GD_OUTPUT_FILE (1 << 16) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a3" doxytag="gd.h::WMF_GD_OUTPUT_MEMORY"></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"> #define WMF_GD_OUTPUT_MEMORY (1 << 17) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a4" doxytag="gd.h::WMF_GD_OWN_BUFFER"></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"> #define WMF_GD_OWN_BUFFER (1 << 18) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a1" doxytag="gd.h::WMF_GD_SUPPORTS_JPEG"></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"> #define WMF_GD_SUPPORTS_JPEG (1 << 1) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a0" doxytag="gd.h::WMF_GD_SUPPORTS_PNG"></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"> #define WMF_GD_SUPPORTS_PNG (1 << 0) </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Typedef Documentation</h2> <a name="a6" doxytag="gd.h::wmf_gd_subtype"></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"> typedef enum <a class="el" href="gd_8h.html#a13">_wmf_gd_subtype</a> wmf_gd_subtype </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a7" doxytag="gd.h::wmf_gd_t"></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"> typedef struct <a class="el" href="struct__wmf__gd__t.html">_wmf_gd_t</a> wmf_gd_t </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Enumeration Type Documentation</h2> <a name="a13" doxytag="gd.h::_wmf_gd_subtype"></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"> enum _wmf_gd_subtype </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt><b>Enumeration values: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em><a name="a13a8" doxytag="wmf_gd_png"></a><em>wmf_gd_png</em></em> </td><td> </td></tr> <tr><td valign=top><em><a name="a13a9" doxytag="wmf_gd_jpeg"></a><em>wmf_gd_jpeg</em></em> </td><td> </td></tr> <tr><td valign=top><em><a name="a13a10" doxytag="wmf_gd_image"></a><em>wmf_gd_image</em></em> </td><td> </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Function Documentation</h2> <a name="a11" doxytag="gd.h::wmf_gd_function"></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"> void wmf_gd_function </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="types_8h.html#a22">wmfAPI</a> * </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a12" doxytag="gd.h::wmf_gd_image_pixels"></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_gd_image_pixels </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void * </td> <td class="mdname1" valign="top" nowrap> <em>gd_image</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> If using the wmf_gd_image option to write to a GD image, collected from the void* gd_image member of the device data struct above, the true-color pixels (stored in a contiguous array of height * width integers) of the image can be retrieved using <a class="el" href="gd_8h.html#a12">wmf_gd_image_pixels()</a> </td> </tr> </table> <hr><address style="align: right;"><small>Generated on Tue Dec 10 19:53:50 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>