文件名称:CColor_src
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:7.31kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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.
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
Color.h
Color.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.