CColor_src

所属分类:Windows编程
开发工具:Visual C++
文件大小:7KB
下载次数:19
上传日期:2007-06-06 16:26:27
上 传 者上官婉儿
说明:  CColor - RGB and HLS combined in one class The CColor class emerged from the need to manipulate color in the HLS model, meaning I needed the ability to directly change attributes like luminance or saturation. The HLS model makes it very easy to draw such things as color gradients between any color. Perhaps Windows 2000 will support the HLS (or the similary HSB) color model, but I do not want to wait until the release. On the other hand my code should also work under NT 4.0 and Win95/98. The CColor class encapsulates the long known type COLORREF and extends it with the HLS color model. A CColor object represents a color, whose RGB and HLS properties can be directly read and manipulated. It makes the use of type COLORREF and the associated macros superfluous.
(CColor- RGB and HLS combined in one class Th e CColor class emerged from the need to manipula te in the HLS color model, meaning I needed the ability to directly change attributes like luminance or saturation. The H LS model makes it very easy to draw such things as color gradients between any color. Perhaps Win dows 2000 will support the HLS (or the similary H SB) color model, but I do not want to wait until the release. On the other hand my code should also work under a NT 4.0 nd Win95/98. The class encapsulates the CColor long known type COLORREF and extends it with the HLS color model. A CColor object represents a co lor. RGB and HLS whose properties can be directly rea d and manipulated. It makes the use of type COLOR REF and the associated macros superfluous.)

文件列表:
Color.cpp (12733, 1999-12-11)
Color.h (14597, 1999-12-11)

近期下载者

相关文件


收藏者