views:

69

answers:

2

I just want to know how to capture a portion of the screen .Getting the screen hot of a particular location and size in windows I want to do this using some windows key functionality I am not doing using and code and i am not looking for any tool. I just want to know if this is possible in windows

+1  A: 

Either capture it with alt+PrnScr (so it gets only the active window) and then crop it in program of your choice, or use one of the programs on this list

Shinhan
A: 

You can write a program that gets a handle to the screen's device context (GetDC), does a BitBlt from that device context to a temporary one you created with CreateCompatibleDC and populated with CreateCompatibleBitmap. Then you select your memory bitmap out and save it. Make sure to release and destroy these GDI resources.

Do do this when the user hits a certain key, your program should call RegisterHotKey and then wait for the notification.

Search MSDN for these function names for more details.

Adrian McCarthy