|
-
Nov 11th, 1999, 05:27 AM
#1
Thread Starter
New Member
Does Anyone know the coe to take a screen shot in vb
thanks alot
tom
[email protected]
-
Nov 11th, 1999, 06:36 PM
#2
Member
Sure. (Don't have full source-code but an idea)
When copying parts of a picture you use the API BitBlt. BitBlt exspects an hDC as a parameter. So you need the hDC of the Desktop. That could be done by hDC = GetDC(GetDesktopWindow).
BitBlt(Picture1.hDC, 0, 0, Screen.Width / TPX, Screen.Height / TPY, hDC, 0,0, SRCCOPY)
Hope that helps
Björn
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
|