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
' ------------------------------------------------------------------------------------
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
' ------------------------------------------------------------------------------------