Hey, I have a big problem. I want to do a program which will get a part of the screen of a program. After that It will show this small rectangle in Image component in BCB. But the problem is, it has to refresh it at least 10 times in one second. For now I succeeded in doing a code that gets a screen but it is too slow. For now it is refreshing in 2,5-3 seconds:/ Maybe better solution would be DirectX or something else?
Image1->Picture->LoadFromFile("black.bmp");
Image1->Refresh();
HWND Wnd=FindWindow(NULL,"Window");
if(Wnd==0) {MessageBox(0,"Didnt find the window",0,0);}
HDC ekran=GetDC(Wnd);
for(int i=0; i<116; i++)
{
for(int j=0; j<114; j++)
{
screen[i][j]=GetPixel(ekran, 674+i,11+j); //colorref
Image1->Picture->Bitmap->Canvas->Pixels[i][j]=screen[i][j];
}
}