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

📄 group__mywins__colorspace.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Color Space Conversion Functions</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>Color Space Conversion Functions<br><small>[<a class="el" href="group__mywins__fns.htm">Interfaces of MyWins module of MiniGUIExt library</a>]</small></h1><h2>Functions</h2><ul><li>void <a class="el" href="group__mywins__colorspace.htm#ga0">RGB2HSV</a> (<a class="el" href="group__basic__types.htm#ga0">Uint8</a> r, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> g, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> b, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> *hout, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> *sout, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> *vout)<dl class="el"><dd class="mdescRight">Converts r/g/b values of a color in RGB color space to h/s/v of the color in HSV color space.  <a href="#ga0"></a><br></dl><li>void <a class="el" href="group__mywins__colorspace.htm#ga1">HSV2RGB</a> (<a class="el" href="group__basic__types.htm#ga2">Uint16</a> hin, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> sin, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> vin, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> *rout, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> *gout, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> *bout)<dl class="el"><dd class="mdescRight">Converts h/s/v values of a color to r/g/b values of the color.  <a href="#ga1"></a><br></dl><li>void <a class="el" href="group__mywins__colorspace.htm#ga2">YUV2RGB</a> (int y, int u, int v, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> *r, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> *g, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> *b)<dl class="el"><dd class="mdescRight">Converts y/u/v values of a color in YUV color space to to r/g/b values of the color in RGB color space.  <a href="#ga2"></a><br></dl><li>MG_EXPORT void <a class="el" href="group__mywins__colorspace.htm#ga3">RGB2YUV</a> (<a class="el" href="group__basic__types.htm#ga0">Uint8</a> r, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> g, <a class="el" href="group__basic__types.htm#ga0">Uint8</a> b, int *y, int *u, int *v)<dl class="el"><dd class="mdescRight">Converts r/g/b values of a color in RGB color space to y/u/v values of the color in YUV color space.  <a href="#ga3"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>This module defines some color space conversion functions. <hr><h2>Function Documentation</h2><a class="anchor" name="ga1" doxytag="colorspace.h::HSV2RGB"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void HSV2RGB           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__basic__types.htm#ga2">Uint16</a>&nbsp;</td>          <td class="mdname" nowrap> <em>hin</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga0">Uint8</a>&nbsp;</td>          <td class="mdname" nowrap> <em>sin</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga0">Uint8</a>&nbsp;</td>          <td class="mdname" nowrap> <em>vin</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga0">Uint8</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>rout</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga0">Uint8</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>gout</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga0">Uint8</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>bout</em></td>        </tr>        <tr>          <td class="md"></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>Converts h/s/v values of a color to r/g/b values of the color. <p>This function converts h/s/v values of a color in HSV color space to r/g/b values of the color in RGB space.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>hin</em>&nbsp;</td><td>The h value of the HSV color space to be converted, the range is between 0 to 359. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>sin</em>&nbsp;</td><td>The s value of the HSV color space to be converted, the range is between 0 to 255. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>vin</em>&nbsp;</td><td>The v value of the HSV color space to be converted, the range is between 0 to 255. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>rout</em>&nbsp;</td><td>The pointer to Uint8, returns the red value of the RGB color space. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>gout</em>&nbsp;</td><td>The pointer to Uint8, returns the green value of the RGB color space. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>bout</em>&nbsp;</td><td>The pointer to Uint8, returns the bout value of the RGB color space.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__colorspace.htm#ga0">RGB2HSV</a>, <a class="el" href="group__mywins__colorspace.htm#ga2">YUV2RGB</a>, <a class="el" href="group__mywins__colorspace.htm#ga3">RGB2YUV</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga0" doxytag="colorspace.h::RGB2HSV"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void RGB2HSV           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__basic__types.htm#ga0">Uint8</a>&nbsp;</td>          <td class="mdname" nowrap> <em>r</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga0">Uint8</a>&nbsp;</td>          <td class="mdname" nowrap> <em>g</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga0">Uint8</a>&nbsp;</td>          <td class="mdname" nowrap> <em>b</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga2">Uint16</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>hout</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga0">Uint8</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>sout</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga0">Uint8</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>vout</em></td>        </tr>        <tr>          <td class="md"></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>Converts r/g/b values of a color in RGB color space to h/s/v of the color in HSV color space. <p>This function converts r/g/b values of a color in RGB color space to h/s/v values of the color in HSV color space.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>r</em>&nbsp;</td><td>The red value of the color in RGB space to be converted. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>g</em>&nbsp;</td><td>The green value of the color in RGB space to be converted. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>b</em>&nbsp;</td><td>The blue value of the color in RGB space to be converted. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>hout</em>&nbsp;</td><td>The pointer to Uint16, returns the h value of the color in HSV color space. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>sout</em>&nbsp;</td><td>The pointer to Uint8, returns the s value of the color in HSV color space returned. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>vout</em>&nbsp;</td><td>The pointer to Uint8, returns the v value of the color in HSV color space returned.</td></tr>

⌨️ 快捷键说明

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