Click to See Complete Forum and Search --> : Capture
franzkafka
Oct 9th, 2000, 11:27 AM
Hello!!. Please, someone knows where can i find an OCX for capturing the screen to a gif, jpg bmp.. file?
Thanks.
Hi.
I don't know any OCX that does what you want, but for BMP, the standard SAVEPICTURE command in VB should do the job for BMP format.
For JPG, take a look at Fox's web page (http://orion.spaceports.com/~mccloud/index.html) there is a lot of nice samples there and there is one for saving a form/picturebox to a JPG file. I haven't looked at it yet, Ijust know its there.
For GIF.... well , beats me!
Good luck!
/\/\isanThr0p
Oct 9th, 2000, 08:11 PM
Just declare the APIs
GetDesktopWindow
and
GetDC or GetWindowDC
BitBlt
than you can blt the desctop to a picturebox. Alain already explained how to save it. It's like a 10 line program.
'(denkst du nicht dein name greift etwas hoch?)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.