03-15-2025 07:18 AM
Hello Everyone,
I hope you all are doing well!
I'm trying to plot the Audiogram using XY Graph.
The icon annotations which I'm trying to plot on the XY Graph are actually Transparent(PNG format) in nature.
When I'm trying to plot the same icons on the XY Graph, the icons are not plotting as PNG/Transparent background image. The icons are plotting with the weird white background.
I want to plot the icons with the actual behavior of the image.
Please find the attached code. "Main Code.vi" is the Test Code.
Solved! Go to Solution.
03-15-2025 11:13 AM - edited 03-15-2025 01:29 PM
You are using very ancient outdated code from around LabVIEW 6
Once you use the modern version, things will be transparent:
03-15-2025 12:14 PM
On a side note, while labVIEW only support drawing up to 24bit colors, The "read png" function does some magic here and creates a mask gleaned from the alpha channel.
03-15-2025 12:22 PM
@altenbach
Thanks for the help.
I tried the approach you shared but now the icons are not plotting on the XY Graph. It will be great help if you will share the modified code.
03-15-2025 12:33 PM - edited 03-15-2025 01:27 PM
@atul_ghumade wrote:I tried the approach you shared but now the icons are not plotting on the XY Graph. It will be great help if you will share the modified code.
See if this works for you ...
(deleted broken attachment, see below)
03-15-2025 12:42 PM - edited 03-15-2025 12:44 PM
03-15-2025 12:57 PM
Looks like I broke something... It definitely worked initially.... I'll check....
03-15-2025 01:23 PM - edited 03-15-2025 02:09 PM
See if this works for you...
(Yes, it can be cleaned up. I currently left you coordinate manipulations as is)
See cleaned up code below...
03-15-2025 02:05 PM - edited 03-15-2025 02:11 PM
@altenbach wrote:
(Yes, it can be cleaned up. I currently left you coordinate manipulations as is)
Here's how that could look like for code clarity.
03-16-2025 12:13 AM
Thank you so much for @altenbach. It worked.