|
-
Oct 2nd, 2001, 12:02 AM
#1
Thread Starter
Lively Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|