I am needing code that will run in visual basic to capture the screen and convert it to a RBG array of pixel values – needs to be quite fast.
Any help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This code will capture a screenshot from a window or the entire desktop (virtual screen) and draw it to a custom picturebox.
Note the use of
GetSystemMetrics()when capturing the desktop. This allows it to get the full virtual screen screen dimensions when multiple monitors are in use instead of just the primary monitor.