📄 group__pal__fns.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: Palette operations</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>Palette operations<br><small>[<a class="el" href="group__gdi__fns.htm">GDI functions</a>]</small></h1><h2>Functions</h2><ul><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__pal__fns.htm#ga0">GetPalette</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int start, int len, <a class="el" href="struct__GAL__Color.htm">GAL_Color</a> *cmap)<dl class="el"><dd class="mdescRight">Gets palette entries of a DC. <a href="#ga0"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__pal__fns.htm#ga1">SetPalette</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int start, int len, <a class="el" href="struct__GAL__Color.htm">GAL_Color</a> *cmap)<dl class="el"><dd class="mdescRight">Sets palette entries of a DC. <a href="#ga1"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__pal__fns.htm#ga2">SetColorfulPalette</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Sets a DC with colorfule palette. <a href="#ga2"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga3">HPALETTE</a> GUIAPI <a class="el" href="group__pal__fns.htm#ga3">CreatePalette</a> (<a class="el" href="struct__GAL__Palette.htm">GAL_Palette</a> *pal)<dl class="el"><dd class="mdescRight">Creates a logical palette. <a href="#ga3"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga3">HPALETTE</a> GUIAPI <a class="el" href="group__pal__fns.htm#ga4">GetDefaultPalette</a> (void)<dl class="el"><dd class="mdescRight">Gets the system default logical palette. <a href="#ga4"></a><br></dl><li>int GUIAPI <a class="el" href="group__pal__fns.htm#ga5">GetPaletteEntries</a> (<a class="el" href="group__handles.htm#ga3">HPALETTE</a> hpal, int start, int len, <a class="el" href="struct__GAL__Color.htm">GAL_Color</a> *cmap)<dl class="el"><dd class="mdescRight">Gets palette entries of a logical palette. <a href="#ga5"></a><br></dl></ul><hr><h2>Function Documentation</h2><a class="anchor" name="ga3" doxytag="gdi.h::CreatePalette"></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"><a class="el" href="group__handles.htm#ga3">HPALETTE</a> GUIAPI CreatePalette </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__GAL__Palette.htm">GAL_Palette</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pal</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>Creates a logical palette. <p>This function creates a logical palette from a palette entry <em>pal</em>.<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>pal</em> </td><td>The Pointer to a GAL_Palette structure that contains information about the colors in the logical palette..</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Handle to the logical palette on success, otherwise 0.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__pal__fns.htm#ga0">GetPalette</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga4" doxytag="gdi.h::GetDefaultPalette"></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">MG_EXPORT <a class="el" href="group__handles.htm#ga3">HPALETTE</a> GUIAPI GetDefaultPalette </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </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>Gets the system default logical palette. <p><dl compact><dt><b>Returns:</b></dt><dd>Handle to the system default logical palette on success, otherwise 0.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__pal__fns.htm#ga0">GetPalette</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga0" doxytag="gdi.h::GetPalette"></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 GUIAPI GetPalette </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>start</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>len</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="struct__GAL__Color.htm">GAL_Color</a> * </td> <td class="mdname" nowrap> <em>cmap</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>Gets palette entries of a DC. <p>This function gets some palette entries of the DC <em>hdc</em>.<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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>The start entry of palette to be retrieved. </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>The length of entries to be retrieved. </td></tr> <tr><td valign="top"></td><td valign="top"><em>cmap</em> </td><td>The buffer receives the palette entries.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The number of entries retrieved from the logical palette.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__pal__fns.htm#ga1">SetPalette</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga5" doxytag="gdi.h::GetPaletteEntries"></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 GUIAPI GetPaletteEntries </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga3">HPALETTE</a> </td> <td class="mdname" nowrap> <em>hpal</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>start</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>len</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="struct__GAL__Color.htm">GAL_Color</a> * </td> <td class="mdname" nowrap> <em>cmap</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>Gets palette entries of a logical palette. <p>This function gets some palette entries of the logical palette <em>hpal</em>.<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>hpal</em> </td><td>The logical palette. </td></tr> <tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>The start entry of palette to be retrieved. </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>The length of entries to be retrieved. </td></tr> <tr><td valign="top"></td><td valign="top"><em>cmap</em> </td><td>The buffer receives the palette entries.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The number of entries retrieved from the logical palette.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__pal__fns.htm#ga0">GetPalette</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga2" doxytag="gdi.h::SetColorfulPalette"></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"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI SetColorfulPalette </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname1" valign="top" nowrap> <em>hdc</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>Sets a DC with colorfule palette. <p>This function sets the DC specified by <em>hdc</em> with colorful palette.<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>hdc</em> </td><td>The device context. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, otherwise FALSE.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__pal__fns.htm#ga1">SetPalette</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga1" doxytag="gdi.h::SetPalette"></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"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI SetPalette </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>start</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>len</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="struct__GAL__Color.htm">GAL_Color</a> * </td> <td class="mdname" nowrap> <em>cmap</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>Sets palette entries of a DC. <p>This function sets some palette entries of the DC <em>hdc</em>.<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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>The start entry of palette to be set. </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>The length of entries to be set. </td></tr> <tr><td valign="top"></td><td valign="top"><em>cmap</em> </td><td>Pointer to the palette entries. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, otherwise FALSE.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__pal__fns.htm#ga0">GetPalette</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 <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 + -