image pixels
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
IPicture interface returns HDC HRESULT get_CurDC( HDC* phdcOut //Receives a pointer to device context ); Use COLORREF GetPixel( HDC hdc, // handle to DC int nXPos, // x-coordinate of pixel int nYPos // y-coordinate of pixel ); COLORREF SetPixel( HDC hdc, // handle to DC int X, // x-coordinate of pixel int Y, // y-coordinate of pixel COLORREF crColor // pixel color );