Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

FillImage Color

I'm using the CWIMAQVision member function FillImage(....) to fill ROI's with custom colors. I can fill the ROI with any value between 0 and 255 but I'd like to use other colors, like Red, to fill the ROI's. Is this possible?
0 Kudos
Message 1 of 4
(3,407 Views)
Thank you for contacting National Instruments. The FillImage(...) function will let you fill the image with color if you are dealing with an RGB image. For 8-bit images, then it only offers you the option of grayscale values between 0 and 255. This function however is obsolete, so you should be using the called FillImage2(...) if it is available. The help for this function explicitly discusses RGBU64 images where you can set the red, green, blue, and alpha planes with a 1D array of four elements. If you have any further questions then let us know.

Regards,
Michael
Applications Engineer
0 Kudos
Message 2 of 4
(3,383 Views)
Thanks,
I've found FillImage2(...) in the IMAQ Vision for VB Help, but it is not a member of my CWIMAQVision class. What version of MeasurmentStudio do I need?
0 Kudos
Message 3 of 4
(3,361 Views)

@mps wrote:
Thanks,
I've found FillImage2(...) in the IMAQ Vision for VB Help, but it is not a member of my CWIMAQVision class. What version of MeasurmentStudio do I need?


CWIMAQVision.FillImage2 is included with IMAQ Vision 7.1. Vision 7.1 now includes all of the Measurement Studio support and functions along with the LabVIEW functions.

Regards,
Michael
Applications Engineer
0 Kudos
Message 4 of 4
(3,345 Views)