Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an equivalent of the ControlImage Method in .Net Version of CNiGraph?

I don't seem to be able to find a ControlImage-type method in WaveformGraph.

I would like to render a copy of the waveform that I create to a printer via NIReports and that method seemed very convenient, as shown in C++ sample code for NIReports.

If that is not available, is there any way to render WaveformGraph and its sub-objects to a metafile?

Thanks
0 Kudos
Message 1 of 2
(3,325 Views)
You can use the Draw method on the WaveformGraph to draw the graph to a Graphics surface with a specified Rectangle. Note that you can specify a Rectangle with a size that's different from the current size of the graph and the graph will draw itself as if it were that size, so it scales very nicely for printing scenarios. If you have Measurement Studio 7.1, there is also a ToImage method that will return an Image of the graph. The Draw method is probably what you want for this case.

- Elton
0 Kudos
Message 2 of 2
(3,320 Views)