Capture and send bits???
-
Hi, I use this way to capture the screen: CRect lpRect; CImage image; CString strPath; char chPath[256]; CWnd *pWnd; int nBB; //Get the window desktop pWnd=GetDesktopWindow(); //Create a CWindowDC to hold the desktop info CWindowDC winDC(pWnd); //Get the size of desktop pWnd->GetWindowRect(lpRect); //Retrieve number of bits per inch nBB=winDC.GetDeviceCaps(BITSPIXEL)*winDC.GetDeviceCaps(PLANES); if (nBB<24) nBB=24; ////////////////////////End/////////////////////////////////// Is there any way to send picture bits or make an array of pixels (A fast way)? and I have know that there is another way to capture the screen using GDI+, Can you possibly tell me how to do this?(Is it faster of above code?) Thanks. Every new thing you learn,Gives you a new personality.
-
Hi, I use this way to capture the screen: CRect lpRect; CImage image; CString strPath; char chPath[256]; CWnd *pWnd; int nBB; //Get the window desktop pWnd=GetDesktopWindow(); //Create a CWindowDC to hold the desktop info CWindowDC winDC(pWnd); //Get the size of desktop pWnd->GetWindowRect(lpRect); //Retrieve number of bits per inch nBB=winDC.GetDeviceCaps(BITSPIXEL)*winDC.GetDeviceCaps(PLANES); if (nBB<24) nBB=24; ////////////////////////End/////////////////////////////////// Is there any way to send picture bits or make an array of pixels (A fast way)? and I have know that there is another way to capture the screen using GDI+, Can you possibly tell me how to do this?(Is it faster of above code?) Thanks. Every new thing you learn,Gives you a new personality.