Screen and/or window capturing has been covered a fair number of times in this forum. Just do a keyword search here.
Most of the solutions (including my own) tend to save the results as a BMP rather than a JPG, as that is all that the SavePicture knows how to do. However, there are JPG libraries available, at least one of which I've recommended in the past.
It is worth knowing, however, that VB can save JPG files, if you use GDI+ rather than GDI. I've mentioned this before, although without code examples.
There are numerous ways to do the screengrab thing, as strongm has suggested and has demonstrated.
There is something that i used long back, called DIjpg.dll, which you can reference in your project, and use its methods to convert bmp files to jpg. Search for downloads of DIJpg.dll in google.
You need to register the DLL using regsvr32 while deployment and prior to development.
Just for an extended information on strongm's comment, GDI+ can convert from and to a wide array of file formats. GREAT STUFF!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.