Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

MFC

Hello EveryOne :

I`m using NI Vision Development 2010 with MFC VS2008 .And I want to known How can I show Image in PictureBox?  Are there any examples used by VC++  MFC code?

Best regards

0 Kudos
Message 1 of 3
(3,269 Views)

AnyBody can help me~~Plz~~~I want to know how can I show Image in MFC picturebox by NI vision.Cause I see the Ex of c++ there only can show Image In the Special Form.

          Thanks Very Much!  

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

I don't know of anyone that has tried to do this before, but it shouldn't be too hard.

 

You just need to get a device context for the picture box's window, by calling ::GetDC().  You can then draw the image to that device context with imgPlotDC2(), close the DC, and force the control to redraw.

 

0 Kudos
Message 3 of 3
(3,235 Views)