文件名称:color_change
- 所属分类:
- 图形图像处理(光照,映射..)
- 资源属性:
- [C/C++] [Text]
- 上传时间:
- 2008-10-13
- 文件大小:
- 957byte
- 下载次数:
- 0次
- 提 供 者:
- 大*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
提供大家颜色转换VC++源代码。RGB to HSV & HSV to RGB
The Hue/Saturation/Value model was created by A. R. Smith in 1978. It is based on such intuitive color characteristics as tint, shade and tone (or family, purety and intensity). The coordinate system is cylindrical, and the colors are defined inside a hexcone. The hue value H runs from 0 to 360º . The saturation S is the degree of strength or purity and is from 0 to 1. Purity is how much white is added to the color, so S=1 makes the purest color (no white). Brightness V also ranges from 0 to 1, where 0 is the black.
There is no transformation matrix for RGB/HSV conversion, but the algorithm follows:
-provide all the color conversion VC source. RGB to HSV
The Hue/Saturation/Value model was created by A. R. Smith in 1978. It is based on such intuitive color characteristics as tint, shade and tone (or family, purety and intensity). The coordinate system is cylindrical, and the colors are defined inside a hexcone. The hue value H runs from 0 to 360º . The saturation S is the degree of strength or purity and is from 0 to 1. Purity is how much white is added to the color, so S=1 makes the purest color (no white). Brightness V also ranges from 0 to 1, where 0 is the black.
There is no transformation matrix for RGB/HSV conversion, but the algorithm follows:
-provide all the color conversion VC source. RGB to HSV
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 11912872color_change.rar 列表 color_change.txt