Menu

Show posts

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

Messages - bal

#1
newLISP and the O.S. / Re: screenshot in Win7
February 19, 2015, 05:41:56 AM
Wow, it looks so amazing and easy! :) So, may be I move some my number-crunchers to C-DLLs. ;) Thanks!
#2
newLISP and the O.S. / Re: screenshot in Win7
February 19, 2015, 02:35:09 AM
I do not need to save the image to a file, I want to analyze it programmatically. Something similar to this:


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);
#3
newLISP and the O.S. / screenshot in Win7
February 18, 2015, 09:11:36 AM
How to take screenshot in Win7?