This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
typedef struct point {
int x;
int y;
} Point;
Point points[] = {
{ 1, 10 },
{ 20, 3 },
{ 640, 480 },
{ 0, 0 }
};
COLORREF colors[4];
HDC h = GetDC(NULL); // handle of desktop
for( int i = 0; i < 4; i++ ) {
colors[i] = GetPixel(h, points[i].x, points[i].y);
}
ReleaseDC(h);