Link to home
Start Free TrialLog in
Avatar of verbal2003
verbal2003

asked on

How to copy screen to image and save it in JPEG picture

I want the program to copy the screen automatically and change the picture to JPEG mode, how to do, and anyone has such control which can give me, thanks!
Avatar of verbal2003
verbal2003

ASKER

anyone can help me, thanks
Avatar of avya2k
visit avya.8m.com and search for screen capture in downloads i think this might help
ASKER CERTIFIED SOLUTION
Avatar of vinnyd79
vinnyd79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
refere to MSDN article

"HOWTO: Capture and Print the Screen, a Form, or Any Window"
Q161299

To save the picture use
SavePicture
statement.

Good Luck!
hi verbal2003, was your question answered?
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

 -->Accept vinnyd79's comment as Answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
http://www.carbosoft.com/CSCREEN.zip.

Add the CarbosoftScreen.dll as a reference to your project. Below is how you would use it. The DLL supports compression of the Screen Capture, so you must keep that zlib.dll with the carbosoftscreen.dll.


Dim ScreenCapture As New CarbosoftScreen.CS




res = ScreenCapture.CaptureScreen(screen.width, screen.height, "ss.bmp",false, 1)

it will return True or False, based on whether it was succsesful or not.

Parameters
----------------
1 - Width
2 - Height
3 - Output file, if you decied to compress (make the extension .zip otherwise .bmp)
4 - Compress
5 - Quality


'Quality Options
'----------------
'1 = 24Bit BMP
'2 = 256 color BMP
'3 = 16 color BMP
'4 = 2 color (monochrome) bmp