Machine Vision

Showing results for 
Search instead for 
Did you mean: 

converet IMAQ to Bitmap in memory (without saving it as a file first



I'm correcting a position of single particle on binary image. To do so, I resorted to implement overelays (an extracted particle over black background). The problem is I have to save the particle as bitmap to a harddisk and then loading it (which is not feasible for online correction).


Is there any method to convert VisionImage into Bitmap or Metafile in memory without saving it first on harddisk?


Once more, I use VB.NET but LabVIEW solution can be comprehended and converted.


Thanks in advance

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology

View Waleed El-Badry's profile on LinkedIn

0 Kudos
Message 1 of 10

Hi VBCoder,


Are you using the Vision Development Module software? If so, why do you have to convert the file to a Bitmap or Metafile? If you could just expand a little bit more on your application that would great. I look forward to hearing back!


Paul M

National Instruments | Applications Engineer |
0 Kudos
Message 2 of 10

Have you tried the image.Flatten method? Seems like it might do what you want. To retrieve it later, there is the corresponding Unflatten method.



0 Kudos
Message 3 of 10

I'm not sure but..........CWIMAQImage.ImageToArray should work.

0 Kudos
Message 4 of 10

imagtobitmap.pngJust a concept...

0 Kudos
Message 5 of 10

Hi GriffinRU,


Thanks very much.


I need to do the same thing (Convert a VisionImage to a Bitmap in memory) but unfortunately I don't have Labview and am not familiar with it.  Is there a way to do this in VB.Net using the NI Vision Development Module?


Thanks for any comments

0 Kudos
Message 6 of 10

Have you seen my reply in "From Vision Image to Bitmap"?



0 Kudos
Message 7 of 10

Any success?


0 Kudos
Message 8 of 10

This could be a nice start,


0 Kudos
Message 9 of 10

.... Edited

I have made a mistake


0 Kudos
Message 10 of 10