Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

image

Hello, guys,

 

I am using Measurement studio6.0 and Visual C++6.0. Right now I need to display a 2-D color image. The image is acquired pixel by pixel and line by line (scanning) and I need to display the image also pixel by pixel in real time. I try CNiGraph3D and  only display XY projection. But it is slow because  in realtime I don’t have the whole image and I need to update the graph each time I get one pixel. Please provide some better solutions.

 

I think I may use the CNiImage in CNiGraph, but I don’t know how to update the CNiImage pixel by pixel in realtime . Or I may get a CDC object of the plot area of CNiGraph control and plot each pixel by myself but how to do it?

 

Thanks,

0 Kudos
Message 1 of 2
(3,123 Views)
Hi,

I'm afraid you are going to run into the same problem if you want to display the your image on the graph.  Is it necessary to display the picture onto a MeasurementStudio graph?  If not, I would suggest using the Microsoft provided libraries for displaying images.  You can load the data into a memory chunk and then display the data using Windows tools.

I think you have the right idea using the Device Context.  I would start by looking at MSDN's site on the CImage class.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/vcrefCImage.asp

Let me know if you run into any trouble.

Tyler T.


0 Kudos
Message 2 of 2
(3,108 Views)