To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example code demonstrates how to getting the entire screen image.
Description
Based on some example code found on msdn library and on the Internet, I developed this sample program that makes use of some Win32 APIs to take a screenshot of the screen and save it to file.
I successfully managed to pass image information from Win32 functions to CVI native functions in order to leverage CVI ability to save images in various formats. In this example a .PNG file is created, but simply using the appropriate function a .JPG, .BMP or .TIF file could be created.
Requirements
Steps to Implement or Execute Code
Note: I am currently using full release of CVI; I cannot be sure this code will work for base version of the IDE since some WIN32 functions are not available in such a release and I cannot test the code against it.
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Thanks! saved me the time of having to look up the win32 calls
You're welcome!
Feel free to rate this example if you found it useful.