alukindo Posted January 29, 2009 Report Share Posted January 29, 2009 Hi: The original images are transparent. However, when I place them on Treeview nodes they take-on a white background. Can I do anything to keep the images transparent?. Notice the selected row. A.L. Quote Link to comment
JustinThomas Posted January 29, 2009 Report Share Posted January 29, 2009 I just tried this on LabVIEW 8.6 and am able to display the symbols correctly. The transparent images are displayed correctly. See attached file How are you reading your png files? Also which version of LabVIEW are you using? Quote Link to comment
alukindo Posted January 29, 2009 Author Report Share Posted January 29, 2009 Hi Justin: I am using version 8.6 as well. I have attached the code that I am using. The VI shows that my images are read-in as 8-bit ones. I know the newer 8.6 VI for reading images has a transparency threshold but does not seem to make a difference in my case. Are your images 8-bit or ? Anthony L. Hi Justin: Thought that I should also include samples of my images. Here are two PNG files with transparency. Thanks Anthony L. Quote Link to comment
Cool-LV Posted February 3, 2009 Report Share Posted February 3, 2009 Hi Justin: I am using version 8.6 as well. I have attached the code that I am using. The VI shows that my images are read-in as 8-bit ones. I know the newer 8.6 VI for reading images has a transparency threshold but does not seem to make a difference in my case. Are your images 8-bit or ? .............. Hi, I think this is the focal cause, PNG file is 32-bit, alpha channal, R, G, and B. Quote Link to comment
JustinThomas Posted February 4, 2009 Report Share Posted February 4, 2009 Yes my images are 32 bit and I did try with the images you posted. I get the same behaviour as you do Quote Link to comment
Cool-LV Posted February 4, 2009 Report Share Posted February 4, 2009 Yup, two solutions 1. use 32-bit png image 2.use create mask.vi, see attachment. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.