📄 group__nanox__image.html
字号:
<!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>Nano-X image file API.</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</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="pages.html">Related Pages</a> </center><hr><h1>Nano-X image file API.<br><small>[<a class="el" href="group__nanox.html">Nano-X public API</a>]</small></h1>Functions to draw images from standard image file formats. <a href="#_details">More...</a><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>void </td><td valign=bottom><a class="el" href="group__nanox__image.html#a0">GrDrawImageToFit</a> (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height, GR_IMAGE_ID imageid)</td></tr><tr><td> </td><td><em class="mdesc">Draws the image from the specified image buffer at the specified position on the specified drawable using the specified graphics context.</em> <a href="#a0"></a><em></em><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__nanox__image.html#a1">GrFreeImage</a> (GR_IMAGE_ID id)</td></tr><tr><td> </td><td><em class="mdesc">Destroys the specified image buffer and reclaims the memory used by it.</em> <a href="#a1"></a><em></em><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__nanox__image.html#a2">GrGetImageInfo</a> (GR_IMAGE_ID id, GR_IMAGE_INFO *iip)</td></tr><tr><td> </td><td><em class="mdesc">Fills in the specified image information structure with the details of the specified image buffer.</em> <a href="#a2"></a><em></em><br><br></td></tr><tr><td nowrap align=right valign=top>GR_IMAGE_ID </td><td valign=bottom><a class="el" href="group__nanox__image.html#a3">GrLoadImageFromBuffer</a> (void *buffer, int size, int flags)</td></tr><tr><td> </td><td><em class="mdesc">FIXME.</em> <a href="#a3"></a><em></em><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__nanox__image.html#a4">GrDrawImageFromBuffer</a> (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height, void *buffer, int size, int flags)</td></tr><tr><td> </td><td><em class="mdesc">FIXME.</em> <a href="#a4"></a><em></em><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Functions to draw images from standard image file formats.<p><hr><h2>Function Documentation</h2><a name="a4" doxytag="nano-X.h::GrDrawImageFromBuffer"></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 GrDrawImageFromBuffer </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_DRAW_ID </td> <td class="mdname" nowrap> <em>id</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_GC_ID </td> <td class="mdname" nowrap> <em>gc</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_SIZE </td> <td class="mdname" nowrap> <em>width</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_SIZE </td> <td class="mdname" nowrap> <em>height</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>buffer</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>size</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>flags</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>FIXME.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>id</em> </td><td>FIXME </td></tr> <tr><td valign=top><em>gc</em> </td><td>FIXME </td></tr> <tr><td valign=top><em>x</em> </td><td>FIXME </td></tr> <tr><td valign=top><em>y</em> </td><td>FIXME </td></tr> <tr><td valign=top><em>width</em> </td><td>FIXME </td></tr> <tr><td valign=top><em>height</em> </td><td>FIXME </td></tr> <tr><td valign=top><em>buffer</em> </td><td>FIXME </td></tr> <tr><td valign=top><em>size</em> </td><td>FIXME </td></tr> <tr><td valign=top><em>flags</em> </td><td>FIXME</td></tr> </table></dl><p><dl compact><dt><b><a class="el" href="todo.html#_todo000009">Todo:</a></b></dt><dd>FIXME document this </dd></dl> </td> </tr></table><a name="a0" doxytag="nano-X.h::GrDrawImageToFit"></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 GrDrawImageToFit </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_DRAW_ID </td> <td class="mdname" nowrap> <em>id</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_GC_ID </td> <td class="mdname" nowrap> <em>gc</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_SIZE </td> <td class="mdname" nowrap> <em>width</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_SIZE </td> <td class="mdname" nowrap> <em>height</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_IMAGE_ID </td> <td class="mdname" nowrap> <em>imageid</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Draws the image from the specified image buffer at the specified position on the specified drawable using the specified graphics context.<p>The width and height values specify the size of the image to draw- if the actual image is a different size, it will be scaled to fit.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>id</em> </td><td>the ID of the drawable to draw the image onto </td></tr> <tr><td valign=top><em>gc</em> </td><td>the ID of the graphics context to use when drawing the image </td></tr> <tr><td valign=top><em>x</em> </td><td>the X coordinate to draw the image at relative to the drawable </td></tr> <tr><td valign=top><em>y</em> </td><td>the Y coordinate to draw the image at relative to the drawable </td></tr> <tr><td valign=top><em>width</em> </td><td>the maximum image width </td></tr> <tr><td valign=top><em>height</em> </td><td>the maximum image height </td></tr> <tr><td valign=top><em>imageid</em> </td><td>the ID of the image buffer containing the image to display </td></tr> </table></dl> </td> </tr></table><a name="a1" doxytag="nano-X.h::GrFreeImage"></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 GrFreeImage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_IMAGE_ID </td> <td class="mdname1" valign="top" nowrap> <em>id</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>Destroys the specified image buffer and reclaims the memory used by it.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>id</em> </td><td>ID of the image buffer to free </td></tr> </table></dl> </td> </tr></table><a name="a2" doxytag="nano-X.h::GrGetImageInfo"></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 GrGetImageInfo </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_IMAGE_ID </td> <td class="mdname" nowrap> <em>id</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_IMAGE_INFO * </td> <td class="mdname" nowrap> <em>iip</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Fills in the specified image information structure with the details of the specified image buffer.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>id</em> </td><td>ID of an image buffer </td></tr> <tr><td valign=top><em>iip</em> </td><td>pointer to a GR_IMAGE_INFO structure </td></tr> </table></dl> </td> </tr></table><a name="a3" doxytag="nano-X.h::GrLoadImageFromBuffer"></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"> GR_IMAGE_ID GrLoadImageFromBuffer </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void * </td> <td class="mdname" nowrap> <em>buffer</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>size</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>flags</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>FIXME.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>buffer</em> </td><td>FIXME </td></tr> <tr><td valign=top><em>size</em> </td><td>FIXME </td></tr> <tr><td valign=top><em>flags</em> </td><td>FIXME</td></tr> </table></dl><p><dl compact><dt><b><a class="el" href="todo.html#_todo000008">Todo:</a></b></dt><dd>FIXME document this </dd></dl> </td> </tr></table><hr><address style="align: right;"><small>Generated on Sun May 18 21:03:07 2003 for Microwindows Nano-X API 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.3 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -