10-02-2015 11:18 AM - edited 10-02-2015 11:19 AM
How can you set the opacity of an image or picture on the front panel?
Example and Need
For my Use Case I have a (NxM) grid of circles and I need to overlay a picture over circle <X,Y>. In this example the overlaid picture would need to be opaque of ~50% so that the borders & text of the circle beneath it shows through
10-02-2015 11:21 AM - edited 10-02-2015 11:22 AM
Post your code, but in general this isn't possible. I mean it can be possible, and depending on what you have I can suggest multiple solutions. But in general LabVIEW doesn't have transparent picture controls or opacity. It can have a mask which ignores pixels so you can see through them, but not an opacity level.
Here is an example using a .NET picture box to get an opacity effect on PNG files.
http://forums.ni.com/t5/LabVIEW/NET-picturebox-convert-to-LabView-image/m-p/3125944#M897890
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-02-2015 02:20 PM
Mind reading is difficult but---
I'm imagining a seperate Floating.vi frontmost and over the main vi with its FP Bounds Property linked to the underlying indicator and its tranparancy property adjusted to the desired level.
I would still need to see some details though----
10-03-2015 12:32 PM
It's also possible to code it yourself by taking the two images and for each pixel with an alpha value get the RGB values of that pixel in both images and average those two values using the alpha value to get the new RGB value (so if you have R60 and R200 and your opacity is 80%, the new R value will be 60+0.8*(200-60), which is 172).