如何进行简单的有序抖动算法 (半色调图像)?
2016-08-23
0 0 0
暂无评分
其他
如何获取积分?
翻译 maninwest@Codeforge 作者:Mr. Lai Tai-Yu@CodeProject
我们常在报纸上看到图片。观察这样的图片你会发现它是由一个个点组成的。我们也可以做出这种效果。很有趣。适用于初学者。背景
操作系统: Microsoft Windows 7 专业版 (64 位) 开发实用程序: Microsoft Visual Studio 2010
使用代码
// The height of the image. for ( int iY = 0; iY < imageA->DibInfo->bmiHeader.biHeight; iY++ ) { // The height of the image. for ( int iX = 0; iX < imageA->DibInfo->bmiHeader.biWidth; iX++ ) { // The index of pixel, because we use the three depth bit to present one pixel of color, // Therefore, we have to multiply three. lIDXA = ( iX * 3 ) + ( iY * imageA->DibInfo->bmiHeader.biWidth * 3 ); // To get the pixel depth of the blue channel, byteRGB_BA = imageA->DibArr
c++
算法
图像
简单
进行
抖动
色调
如何
有序
相关源码推荐
局部路径规划算法-DWA算法
0
0
暂无评分
数字城市前端经典面试题
0
0
暂无评分
enDAQ-Shock-Data-Share-SRS-Blog
0
0
暂无评分
HDU-2553 N皇后问题
0
0
暂无评分
在Windows应用程序里调用chatGPT
0
0
暂无评分
暂无评论