文件名称:Gray
介绍说明--下载内容均来自于网络,请自行研究使用
C++图象特效示例——灰度转换,使用F1~F4控制转换灰度的方式,F5为增加图象的对比度。F1=平均值法转换,F2=最大值法转换,F3=加权平均值法转换,F4=恢复彩色。ConvertToGrayScale灰度转换函数是本程序的关键,函数参数:Method为转换灰度的方式,值可设置为:
MAXIMUM_GRAY=最大值法,MEAN_GRAY=平均值法
WEIGHT_GRAY=加权平均值法
Color目前只能为8即只能处理8位调色板方式-Example C++ image effects- Grayscale conversion, use F1 ~ F4 control to convert grayscale way, F5 to increase the image contrast. F1 = the average of the conversion law, F2 = maximum method conversion, F3 = weighted average of the conversion law, F4 = restore color. ConvertToGrayScale grayscale conversion function is the key function parameters of this procedure: Method to convert grayscale way, value can be set to:
MAXIMUM_GRAY = max method, MEAN_GRAY = average of Law
WEIGHT_GRAY = weighted average of the Act
Color currently only eight palettes that can only handle eight ways
MAXIMUM_GRAY=最大值法,MEAN_GRAY=平均值法
WEIGHT_GRAY=加权平均值法
Color目前只能为8即只能处理8位调色板方式-Example C++ image effects- Grayscale conversion, use F1 ~ F4 control to convert grayscale way, F5 to increase the image contrast. F1 = the average of the conversion law, F2 = maximum method conversion, F3 = weighted average of the conversion law, F4 = restore color. ConvertToGrayScale grayscale conversion function is the key function parameters of this procedure: Method to convert grayscale way, value can be set to:
MAXIMUM_GRAY = max method, MEAN_GRAY = average of Law
WEIGHT_GRAY = weighted average of the Act
Color currently only eight palettes that can only handle eight ways
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Gray\back.bmp
....\Gray.cpp
....\Gray.exe
Gray