Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

question for imgplot

I want to show a image on a static picture control on dialog by vc++, I get the control's HWND by GetSafeHWnd() to set the first paprameter and set the second parameter with a buffer pointer, since I just want to test, so buffer data is not obtained by capture card, but from a file. No image display on the control, no errors display either, why?
0 Kudos
Message 1 of 4
(2,827 Views)
Have you looked at the CStatic::SetBitmap or CStatic::SetEnhMetaFile methods? If not, these methods provide an easier way to populate a static control with an image from a file. If so, what is happening in your application that makes these methods not work?

- Elton
0 Kudos
Message 2 of 4
(2,827 Views)
I want to use imgPlot to draw image on the control, beacuse it is easy and faster to use it with capture card.

imgPlot ((GUIHNDL)hFrameWnd, pImg, 0, 0, src->width, src->height,0, 0, IMGPLOT_MONO_8)

hFrameWnd is the handle,pImg is the pointer to buffer, but it can not work?
0 Kudos
Message 3 of 4
(2,827 Views)
Oh, I see ... you're talking about using the imgPlot IMAQ function. I suggest posting this question in the Vision forum to get the best answer to this question.

- Elton
0 Kudos
Message 4 of 4
(2,827 Views)