Displaying 1 result from an estimated 1 matches for "hscreendc".
Did you mean:
screendc
2005 Apr 21
9
Screen capture, save to file
...rn "long GlobalUnlock(void*)"
extern "long GlobalFree(void*)"
extern "long DeleteObject(unsigned long)"
extern "long DeleteDC(HDC)"
extern "long ReleaseDC(long, HDC)"
module_function
def screenCapture(filename = "tmp.bmp")
hScreenDC = getWindowDC(0)
hmemDC = createCompatibleDC(hScreenDC)
screenWidth = getDeviceCaps(hScreenDC, HORZRES)
screenHeight = getDeviceCaps(hScreenDC, VERTRES)
hmemBM = createCompatibleBitmap(hScreenDC, screenWidth,
screenHeight)
selectObject(hmemDC, hmemBM)
printf("width,hei...