Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy an image from IMAQ image to area in Windows window (like dialog box)

We are making an application that inspects pharmaceuticals during packaging.  I am happy to report that we have been able to quickly and successfully do identification by color match of a wide variety of product, some of which we can't tell apart with the naked eye.

 

I would like to display a set of 'thumbnails' of the images just after they have been acquired, arrayed in a dialog box.  Rather than using the DisplayImage function, I would prefer to copy the pixel information into a Windows pixel area.  Is there a function that can do this for me?

 

We are programming in Visual C++ Version 6 using the IMAQ libraries.

 

Thanks very much for your help.

 

With kind regards,

Jerry Antoine

 

GCA Technology

www.gcatech.com

781-829-6560 (W)

617-921-2959 (C)

 

0 Kudos
Message 1 of 2
(6,210 Views)

Hi Jerry

 

Since there are no methods to directly convert the image from a image class to a windows pixel area, you could use our image to array functions. These will vary depending on if you are using the Vision API or the IMAQ API.  Alternatively you could save the image as a JPEG and then call this using the windows pixel area functions.


Thank You
Eric Reid
National Instruments
Motion R&D
0 Kudos
Message 2 of 2
(6,189 Views)