Saving the Image of a Measurement Studio Control into a File
Downloads
Filename: savetofile.zip
Requirements: View
This example shows how to retrieve the image of a Measurement Studio control and save it into an enhanced metafile, which has a *.emf extension.
All Measurement Studio user interface controls expose the ControlImage() method. This method returns a metafile of the control that you also can use for printing. The metafile is created at c:\temp.emf.
Measurement Studio 7.1 ActiveX controls provide an method called ControlImageEx. You use the ControlImageEx methods in much the same way you use the ControlImage methods. The difference is that when you call ControlImageEx, you specify the x and y resolution in dots per inch (dpi) of the device on which you will render the picture that ControlImageEx returns. Refer to the Measurement Studio Reference documentation about ControlImage for more information.
To update the version of the Measurement Studio ActiveX controls to 7.x or higher, please download and install the Measurement Studio updater from the Measurement Studio Drivers and Updates page, linked below
| Related Links: |
| Measurement Studio Update for Visual Basic 6.0 and Visual C++ 6.0 |
Requirements
Filename: savetofile.zip
Software Requirements
Application Software: Measurement Studio Visual C++ Support 6.0
Language(s): Visual C++
Reader Comments | Submit a comment »
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
