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

📄 palette_editor.shtml.htm

📁 随书类文件![随书类]MFC_SOURCEBOOK
💻 HTM
字号:
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="Author" CONTENT="Zafir Anjum">
   <TITLE>OpenGL - Palette editor</TITLE>
</HEAD>
<body background="../fancyhome/back.gif" tppabs="http://www.codeguru.com/fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000" bgproperties="fixed">
<table WIDTH="100%">
<tr WIDTH="100%">
<td><A HREF="http://209.66.99.126/cgi/ads.cgi?advert=genitor"><IMG SRC="../banners/genitor.gif" tppabs="http://www.codeguru.com/banners/genitor.gif" HEIGHT=60 WIDTH=468 ALT="Genitor - award-winning Object Construction Suite for C/C++ development, documentation, and maintainance" BORDER=2></A><BR><SMALL><A HREF="http://209.66.99.126/cgi/ads.cgi?advert=genitor">Click here to get a trail copy of Genitor V3.1</A></SMALL><td>
</tr>
</table>


<CENTER><H3><FONT COLOR="#AOAO99">Palette editor</FONT></H3></CENTER>
<HR>




This article was contributed by <A HREF="mailto:pierre.alliez@cnet.francetelecom.fr">Pierre ALLIEZ</A>.

</B></FONT><P><A HREF="Palette.zip" tppabs="http://www.codeguru.com/opengl/Palette.zip">Download</A></P>

<FONT SIZE=2><P>The CDialogPalette class permit easy edition of 256 colors ramps. We can also save and load predefined ramps. The ramp editing is made using nodes, ramps are recalculated between every defined nodes. by example : for a single grey scale ramp, only the first and the last nodes are necessary (black and white), the rainbow ramp is defined using a few nodes, in fact in a few mouse events. Adaptation is possible to insert this class in applications which need ramp definition...</P></FONT>
<TABLE CELLSPACING=0 BORDER=0 CELLPADDING=4 WIDTH=368>
<TR><TD WIDTH="51%" VALIGN="TOP">
<P ALIGN="CENTER"><A HREF="Palette1.gif" tppabs="http://www.codeguru.com/opengl/Palette1.gif"><IMG SRC="Palette1_small.gif" tppabs="http://www.codeguru.com/opengl/Palette1_small.gif" BORDER=0 WIDTH=150 HEIGHT=142></A></TD>
<TD WIDTH="49%" VALIGN="TOP">
<P ALIGN="CENTER"><A HREF="Palette2.gif" tppabs="http://www.codeguru.com/opengl/Palette2.gif"><IMG SRC="Palette2_small.gif" tppabs="http://www.codeguru.com/opengl/Palette2_small.gif" BORDER=0 WIDTH=150 HEIGHT=142></A></TD>
</TR>
<TR><TD WIDTH="51%" VALIGN="TOP">
<P ALIGN="CENTER"><A HREF="Palette3.gif" tppabs="http://www.codeguru.com/opengl/Palette3.gif"><IMG SRC="Palette3_small.gif" tppabs="http://www.codeguru.com/opengl/Palette3_small.gif" BORDER=0 WIDTH=150 HEIGHT=142></A></TD>
<TD WIDTH="49%" VALIGN="TOP">
<P ALIGN="CENTER"><A HREF="Palette4.gif" tppabs="http://www.codeguru.com/opengl/Palette4.gif"><IMG SRC="Palette4_small.gif" tppabs="http://www.codeguru.com/opengl/Palette4_small.gif" BORDER=0 WIDTH=150 HEIGHT=142></A></TD>
</TR>
</TABLE>



<P>
<P>
<HR>
<TABLE BORDER=0 WIDTH="100%" >
<TR>
<TD WIDTH="33%"><FONT SIZE=-1><A HREF="../index.htm" tppabs="http://www.codeguru.com/">Goto HomePage</A></FONT></TD>

<TD WIDTH="33%">
<CENTER><FONT SIZE=-2>&copy; 1997 Zafir Anjum</FONT>&nbsp;</CENTER>
</TD>

<TD WIDTH="34%">
<DIV ALIGN=right><FONT SIZE=-1>Contact me: <A HREF="mailto:zafir@home.com">zafir@home.com</A>&nbsp;</FONT></DIV>
</TD>
</TR>
</TABLE>
<CENTER><FONT SIZE=-2>5884</FONT></CENTER>
</BODY>
</HTML>

⌨️ 快捷键说明

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