Hello,
I'm kind of a newbie in Visual C++ and I'm doing a image processing project in which I need to get specific pixel values whenever I click on a bitmap image.
I'd appreciate if you gave me some hints and code on how to do this
Thanks
Printable View
Hello,
I'm kind of a newbie in Visual C++ and I'm doing a image processing project in which I need to get specific pixel values whenever I click on a bitmap image.
I'd appreciate if you gave me some hints and code on how to do this
Thanks
Your question is not clear, explain clearly.
try CDC::GetPixel ()
I want to get the pixel's value(RGB) and coordinates when I click on a point (pixel) inside a BMP image.
Hope this explains it better.
Thanks
You will need to Add message Handler for WM_LBUTTONDOWN or Handle WM_LBUTTONDOWN message. you could use GetCursorPos API to get the coordinates of the mouse cursor and use GetPixel as Skizmo suggested to get the RGB value at the specified point.