Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer an image from VB Picture Box to IMAQ Viewer

Is there a way to take the current image from CWIMAQVision1 and place it in a VB Picture box? Similar to Picture1.Picture = Picture2.Image in VB takes the current image and transfers it to another picture box? Can you also do the reverse and transfer the image from a picture box and place it in CWIMAQVision1?
0 Kudos
Message 1 of 2
(3,307 Views)
No, there is no way to directly move an image from the Picture Box to the CWIMAQ Viewer and back. The reason for this is that the CWIMAQ Viewer requires a different image data structure than the picture box. It is not possible to read a file with the LoadPicture command and then send it to CWIMAQ Viewer. You must read the file with one of the Vision tools to read files such as CWIMAQVision1.ReadFile.

I hope this clears some things up for you.

Jack Arnold
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,307 Views)