📄 group__mywins__colorspace.htm
字号:
<!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 Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related 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">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__basic__types.htm#ga2">Uint16</a> </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> </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> </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> * </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> * </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> * </td> <td class="mdname" nowrap> <em>bout</em></td> </tr> <tr> <td class="md"></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>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> </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> </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> </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> </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> </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> </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">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__basic__types.htm#ga0">Uint8</a> </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> </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> </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> * </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> * </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> * </td> <td class="mdname" nowrap> <em>vout</em></td> </tr> <tr> <td class="md"></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>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> </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> </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> </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> </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> </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> </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 + -