Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting an image pointer to CNiGraph control

Hi,

I'm programming C++ with Visual Studio 6.0 on Win 2000.


I am actually displaying a bitmap in a Component Work++ CNiGraph control so I can view a peek detection plot over the image.


The only possibility I see to display an image on the background of the plot area is to set the URL to a file which was previously saved on disk. The problem is that saving and reloading the image is very slow.

Is there a way to display my image on the plot area of my CNiGraph control by directly setting a char pointer to the control?

Best regards.

Fred.
0 Kudos
Message 1 of 2
(3,016 Views)
Hello

The control image is returned as an enhanced metafile in Measurement Studio 6.0. You can copy that image to a clipboard and then use it whenever you need. Check out this link for how to do this.

A meta file is not an simple as a bitmap though, see here for format. So getting a char * handle to it might not be the best thing to do.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,016 Views)