Keep only red channel of an image using GDI()

我是研究僧i 提交于 2019-12-25 07:10:05

问题


I initially had a color image which i made it grayscale by copying only red channels i.e, first 8 bits of RGB(24bit). This was done as some processing required the image to be grayscale.After the processing i have to display this image on screen using GDI. So i have to copy put the gray values into red chanel of the final output. Something like setpixel(i,j,RGB(grayvalue,0,0)). How do i achieve this using GDI?


回答1:


As suggested by David, its been solved with solution mentioned in the following thread display red channel of image using GDI



来源:https://stackoverflow.com/questions/23051008/keep-only-red-channel-of-an-image-using-gdi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!