ScreenShot Class

ChiefRedBull
02-28-2002, 04:07 PM
<h1><font color=orange>ScreenShot Class</font></h1>
A nice encapsulation of the GDI API to take a shot of any part of the screen. Sweet.

' ------------------------------------------------------------------------------------
'
' Use this one for taking a picture of the screen. Simple.
'
' Properties - [none]
'
' Methods -
' Public - TakeScreenShot
' Private - CleanUp
'
' Events - [none]
'
' Usage:
'
' TakeScreenShot (hDC, activeForm, x, y, width, height)
'
' hDC - hDC of the device to be copied to
' if hDC = 0 then the function returns a handle
' to a StdPicture object
'
' activeForm - copy the currently active form
' if activeform = 1 (true) then
' x - x coord of rectangle to copy
' y - y coord of rectangle to copy
' width - width of rectangle to copy
' height - height of rectangle to copy
' otherwise they are ignored
' ------------------------------------------------------------------------------------

Garrett Sever
03-01-2002, 06:31 AM
Just thought it would be worthwhile to note that Crazed-Lunatic posted something similar (although not identical) in this thread (http://www.visualbasicforum.com/showthread.php?s=&threadid=11040), just in case someone needs another example.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum