getting binary code from a screenshot
ok, im using the following code to get a screenshot....
Dim lngScreenDC As Long
Dim lngScreenH As Long, lngScreenW As Long
Dim lngDC As Long
Dim lngBMP As Long, lngOrigBMP As Long
lngScreenDC = GetDC(GetDesktopWindow())
lngScreenH = Screen.Height \ Screen.TwipsPerPixelY
lngScreenW = Screen.Width \ Screen.TwipsPerPixelX
lngDC = CreateCompatibleDC(lngScreenDC)
lngBMP = CreateCompatibleBitmap(lngScreenDC, lngScreenW, lngScreenH)
lngOrigBMP = SelectObject(lngDC, lngBMP)
BitBlt lngDC, 0, 0, lngScreenW, lngScreenH, lngScreenDC, 0, 0, vbSrcCopy
SelectObject lngDC, lngOrigBMP
DeleteDC lngDC
---------------------
now... how would i go about getting the binary code for the bitmap .... cuz i want to compress that code... so it can be sent over winsock more quickly.... also if anyone has any good compression code i could use..... that would be useful as well.