I use VS2010 MFC.
I want to do following steps.
But I don't know steps...
Please advise me :)
This should works:
#include "atlimage.h" // This is neccesary to use CImage objects from GDI+
void dummy ()
{
std::string bitmapFile = "file.bmp"; // Full path of your bitmap file
int x = 0; // Your x coordinate
int y = 0; // Your y coordinate
CImage image;
if ( SUCCEEDED ( image.Load ( bitmapFile.c_str() ) ) )
{
COLORREF color = image.GetPixel ( x, y );
}
}