⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__nanox__draw.html

📁 Nano-x的设计架及相关文档----这是网上下载的中文翻译版本, E文的可以在其网站上下载.
💻 HTML
📖 第 1 页 / 共 5 页
字号:
    </td>    <td><p>Creates a new graphics context structure.<p>The structure is initialised with a set of default parameters.<p><dl compact><dt><b>Returns:</b></dt><dd>The ID of the newly created graphics context or 0 on error. </dd></dl>    </td>  </tr></table><a name="a31" doxytag="nano-X.h::GrPoint"></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 GrPoint </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_DRAW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>id</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_GC_ID&nbsp;</td>          <td class="mdname" nowrap> <em>gc</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>y</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>Draws a point using the specified graphics context at the specified position on the specified drawable.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>id</em>&nbsp;</td><td>the ID of the drawable to draw a point on </td></tr>    <tr><td valign=top><em>gc</em>&nbsp;</td><td>the ID of the graphics context to use when drawing the point </td></tr>    <tr><td valign=top><em>x</em>&nbsp;</td><td>the X coordinate to draw the point at relative to the drawable </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>the Y coordinate to draw the point at relative to the drawable </td></tr>  </table></dl>    </td>  </tr></table><a name="a32" doxytag="nano-X.h::GrPoints"></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 GrPoints </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_DRAW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>id</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_GC_ID&nbsp;</td>          <td class="mdname" nowrap> <em>gc</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COUNT&nbsp;</td>          <td class="mdname" nowrap> <em>count</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_POINT *&nbsp;</td>          <td class="mdname" nowrap> <em>pointtable</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>Draws a set of points using the specified graphics context at the positions specified by the point table on the specified drawable.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>id</em>&nbsp;</td><td>the ID of the drawable to draw a point on </td></tr>    <tr><td valign=top><em>gc</em>&nbsp;</td><td>the ID of the graphics context to use when drawing the point </td></tr>    <tr><td valign=top><em>count</em>&nbsp;</td><td>the number of points in the point table </td></tr>    <tr><td valign=top><em>pointtable</em>&nbsp;</td><td>pointer to a GR_POINT array which lists the points to draw </td></tr>  </table></dl>    </td>  </tr></table><a name="a33" doxytag="nano-X.h::GrPoly"></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 GrPoly </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_DRAW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>id</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_GC_ID&nbsp;</td>          <td class="mdname" nowrap> <em>gc</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COUNT&nbsp;</td>          <td class="mdname" nowrap> <em>count</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_POINT *&nbsp;</td>          <td class="mdname" nowrap> <em>pointtable</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>Draws an unfilled polygon on the specified drawable using the specified graphics context.<p>The polygon is specified by an array of point structures. The polygon is not automatically closed- if a closed polygon is desired, the last point must be the same as the first.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>id</em>&nbsp;</td><td>the ID of the drawable to draw the polygon onto </td></tr>    <tr><td valign=top><em>gc</em>&nbsp;</td><td>the ID of the graphics context to use when drawing the polygon </td></tr>    <tr><td valign=top><em>count</em>&nbsp;</td><td>the number of points in the point array </td></tr>    <tr><td valign=top><em>pointtable</em>&nbsp;</td><td>pointer to an array of points describing the polygon </td></tr>  </table></dl>    </td>  </tr></table><a name="a30" doxytag="nano-X.h::GrReadArea"></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 GrReadArea </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_DRAW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>id</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>y</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_SIZE&nbsp;</td>          <td class="mdname" nowrap> <em>width</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_SIZE&nbsp;</td>          <td class="mdname" nowrap> <em>height</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_PIXELVAL *&nbsp;</td>          <td class="mdname" nowrap> <em>pixels</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>Reads the pixel data of the specified size from the specified position on the specified drawable into the specified pixel array.<p>If the drawable is a window, the data returned will be the pixel values from the relevant position on the screen regardless of whether the window is obscured by other windows. If the window is unmapped, or partially or fully outside a window boundary, black pixel values will be returned.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>id</em>&nbsp;</td><td>the ID of the drawable to read an area from </td></tr>    <tr><td valign=top><em>x</em>&nbsp;</td><td>the X coordinate to read the area from relative to the drawable </td></tr>    <tr><td valign=top><em>y</em>&nbsp;</td><td>the Y coordinate to read the area from relative to the drawable </td></tr>    <tr><td valign=top><em>width</em>&nbsp;</td><td>the width of the area to read </td></tr>    <tr><td valign=top><em>height</em>&nbsp;</td><td>the height of the area to read </td></tr>    <tr><td valign=top><em>pixels</em>&nbsp;</td><td>pointer to an area of memory to place the pixel data in </td></tr>  </table></dl>    </td>  </tr></table><a name="a20" doxytag="nano-X.h::GrRect"></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 GrRect </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">GR_DRAW_ID&nbsp;</td>          <td class="mdname" nowrap> <em>id</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_GC_ID&nbsp;</td>          <td class="mdname" nowrap> <em>gc</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>GR_COORD&nbsp;</td>          <td class="mdname" nowrap> <em>y</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" no

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -