02-11-2010 12:40 PM
I want to overlay one CWIMAQImage on top of another but CWIMAQOverlay.DrawPicture requires a stdole.StdPicture object. How do I convert my CWIMAQImage to a stdole.StdPicture? Or, is there another way to overlay one image onto another?
Also, when I overlay, is there a way to ensure that black pixels are transparent and not black?
Basically I have an image I am inspecting for defects. I filter the image and threshold to show only defect areas, now I want to take the thresholded image, with defects colored red, and overlay it on top of my greyscale image so that defects are highlighted on the original image.
02-12-2010 03:58 PM
Hi again,
The CWIMAQImage can convert to array, so if you can track down the way with the stdole.StdPicture object to convert it from an array, that would work.
Check out this article on the transparency question. It's a masking issue.