Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make IMAQ Wind transparent?

Solved!
Go to solution
I have a transparent picture (png) that I want to use the IMAQ WindDraw to display. I tried to set it transparent using the Windbackground function with no success. I wonder if there's anyway to do it?
0 Kudos
Message 1 of 5
(4,162 Views)

You can't do it so easy. Transparency in PNG is not supported by IMAQ Vision.

Otherwise you can overlay your bitmap with IMAQ Overlay Bitmap function (with replacement key pixels to transparent).

Read the following thread: How can I import a .png image with transparent background into Vision Assistant?

May be given snippet will be helpful for you too.

  

Andrey.

 

0 Kudos
Message 2 of 5
(4,159 Views)

Thank you for your reply. I looked that thread, however, if using this method I'll have to make the front panel transparent again.

I meant to ask not how to make this external window (IMAQ WindDraw) transparent, and is it possible to use IMAQ WindBackground function to do it? 

0 Kudos
Message 3 of 5
(4,152 Views)
Solution
Accepted by topic author lshi

No, you can't do it with IMAQ WindBackground. Transparency is not allowed for this function. ITs a just backgound which displayed if no image loaded, or surround border (for example, for grayscale images its very good to set background with neutral grey).

 

If you need full transparency of IMAQ Window, then you will need to involve WinAPI, something like that:

 

transparentimaq.png

 

Andrey.

 

0 Kudos
Message 4 of 5
(4,144 Views)

This is exactly what I want.

Thank you! 

0 Kudos
Message 5 of 5
(4,133 Views)