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

📄 group__gamma__fns.htm

📁 MINIGUI1.6开发API
💻 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: Gamma correction 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>Gamma correction functions<br><small>[<a class="el" href="group__dc__fns.htm">General DC operations</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__gamma__fns.htm#ga3">SetGamma</a>&nbsp;&nbsp;&nbsp;GAL_SetGamma<dl class="el"><dd class="mdescRight">Is an alias of <em>GAL_SetGamma</em>.  <a href="#ga3"></a><br></dl><li>#define <a class="el" href="group__gamma__fns.htm#ga4">SetGammaRamp</a>&nbsp;&nbsp;&nbsp;GAL_SetGammaRamp<dl class="el"><dd class="mdescRight">Is an alias of <em>GAL_SetGammaRamp</em>.  <a href="#ga4"></a><br></dl><li>#define <a class="el" href="group__gamma__fns.htm#ga5">GetGammaRamp</a>&nbsp;&nbsp;&nbsp;GAL_GetGammaRamp<dl class="el"><dd class="mdescRight">Is an alias of <em>GAL_GetGammaRamp</em>.  <a href="#ga5"></a><br></dl></ul><h2>Functions</h2><ul><li>int <a class="el" href="group__gamma__fns.htm#ga0">GAL_SetGamma</a> (float red, float green, float blue)<dl class="el"><dd class="mdescRight">Sets the gamma correction for each of the color channels.  <a href="#ga0"></a><br></dl><li>int <a class="el" href="group__gamma__fns.htm#ga1">GAL_SetGammaRamp</a> (<a class="el" href="group__basic__types.htm#ga2">Uint16</a> *red, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> *green, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> *blue)<dl class="el"><dd class="mdescRight">Sets the gamma translation table for the red, green, and blue channels of the video hardware.  <a href="#ga1"></a><br></dl><li>int <a class="el" href="group__gamma__fns.htm#ga2">GAL_GetGammaRamp</a> (<a class="el" href="group__basic__types.htm#ga2">Uint16</a> *red, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> *green, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> *blue)<dl class="el"><dd class="mdescRight">Retrieves the current values of the gamma translation tables.  <a href="#ga2"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga5" doxytag="gdi.h::GetGammaRamp"></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">#define GetGammaRamp&nbsp;&nbsp;&nbsp;GAL_GetGammaRamp          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Is an alias of <em>GAL_GetGammaRamp</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__gamma__fns.htm#ga2">GAL_GetGammaRamp</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l01954">1954</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga3" doxytag="gdi.h::SetGamma"></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">#define SetGamma&nbsp;&nbsp;&nbsp;GAL_SetGamma          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Is an alias of <em>GAL_SetGamma</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__gamma__fns.htm#ga0">GAL_SetGamma</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l01888">1888</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga4" doxytag="gdi.h::SetGammaRamp"></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">#define SetGammaRamp&nbsp;&nbsp;&nbsp;GAL_SetGammaRamp          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Is an alias of <em>GAL_SetGammaRamp</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__gamma__fns.htm#ga1">GAL_SetGammaRamp</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l01922">1922</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga2" doxytag="gdi.h::GAL_GetGammaRamp"></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">int GAL_GetGammaRamp           </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>red</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>green</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>blue</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>Retrieves the current values of the gamma translation tables. <p>This function retrieves the current values of the gamma translationn tables. You must pass in valid pointers to arrays of 256 16-bit quantities. Any of the pointers may be NULL to ignore that channel.<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>red</em>&nbsp;</td><td>Pointers to the array of gamma translation tables for the red channel. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>green</em>&nbsp;</td><td>Pointers to the array of gamma translation tables for the green channel. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>blue</em>&nbsp;</td><td>Pointers to the array of gamma translation tables for the blue channel.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>If the call succeeds, it will return 0. If the display driver or hardware does not support gamma translation, or otherwise fails, this function will return -1.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__gamma__fns.htm#ga1">GAL_SetGammaRamp</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga0" doxytag="gdi.h::GAL_SetGamma"></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">int GAL_SetGamma           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">float&nbsp;</td>          <td class="mdname" nowrap> <em>red</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>float&nbsp;</td>          <td class="mdname" nowrap> <em>green</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>float&nbsp;</td>          <td class="mdname" nowrap> <em>blue</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>Sets the gamma correction for each of the color channels. <p>This function sets the gamma correction for each of the color channels. The gamma values range (approximately) between 0.1 and 10.0. If this function isn't supported directly by the hardware, it will be emulated using gamma ramps, if available.<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>red</em>&nbsp;</td><td>The gamma correction value of red channel. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>green</em>&nbsp;</td><td>The gamma correction value of green channel. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>blue</em>&nbsp;</td><td>The gamma correction value of blue channel. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>If successful, this function returns 0, otherwise it returns -1.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__gamma__fns.htm#ga1">GAL_SetGammaRamp</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga1" doxytag="gdi.h::GAL_SetGammaRamp"></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">int GAL_SetGammaRamp           </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>red</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>green</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>blue</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>Sets the gamma translation table for the red, green, and blue channels of the video hardware. <p>This function sets the gamma translation table for the red, green, and blue channels of the video hardware. Each table is an array of 256 16-bit quantities, representing a mapping between the input and output for that channel. The input is the index into the array, and the output is the 16-bit gamma value at that index, scaled to the output color precision.<p>You may pass NULL for any of the channels to leave it unchanged.<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>red</em>&nbsp;</td><td>The gamma translation table for the red channel. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>green</em>&nbsp;</td><td>The gamma translation table for the green channel. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>blue</em>&nbsp;</td><td>The gamma translation table for the blue channel.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>If the call succeeds, it will return 0. If the display driver or hardware does not support gamma translation, or otherwise fails, this function will return -1.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__gamma__fns.htm#ga2">GAL_GetGammaRamp</a>, <a class="el" href="group__gamma__fns.htm#ga0">GAL_SetGamma</a> </dd></dl>    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:54 2007 for MiniGUI V1.6.10 API Reference by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>

⌨️ 快捷键说明

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