09-19-2023 08:47 AM
I would like to animate flows between equipment in a chemical process. I am trying pict ring as shown in the attached vi. The ring control will eventually have two pictures with different colors for lines. When I place the ring on the process flow diagram the ring border hides the underlying picture. I have made the edge transparent. When I try to make the background transparent, the entire ring disappears. Is there a way to make the flow diagram appear through the ring? I am using Labview 2020.
Thank you.
Girish Joglekar
09-19-2023 11:43 AM
@girish53 wrote:
When I try to make the background transparent, the entire ring disappears. Is there a way to make the flow diagram appear through the ring? I am using Labview 2020.
I am afraid the transperency information is getting lost when copy and pasting the image from image to clipboard to ring control
09-19-2023 01:38 PM
Looks like you can't do that with picture ring, nor with a picture control. But there are other options.
09-19-2023 02:51 PM
I used a LabVIEW classic picture ring control and set it transparent BEFORE importing the images and it worked.
I also dragged the images that had some transparency onto the front panel of the VI before copying them and pasting them to the ring.
I found in the past that importing directly from a file would sometimes lose the transparency but copying from the front panel did not.
You can test this by creating some decorations on the front panel and copying and pasting them into the ring.
I sometimes create decorations in Powerpoint, right click them and "Save as picture", then drag the saved images to the VI front panel (good for creating custom buttons).
09-20-2023 06:57 AM - edited 09-20-2023 07:00 AM
@jjohn1 wrote:
I used a LabVIEW classic picture ring control and set it transparent BEFORE importing the images and it worked.
In the following I set the picture control background to pink
@jjohn1 wrote:
I also dragged the images that had some transparency onto the front panel of the VI before copying them and pasting them to the ring.
I found in the past that importing directly from a file would sometimes lose the transparency but copying from the front panel did not.
this is a very well observation
which is applicable for the classic palette, but also the modern palette
09-20-2023 07:08 AM - edited 09-20-2023 07:12 AM
@alexderjuengere wrote:
I am afraid the transperency information is getting lost when copy and pasting the image from image to clipboard to ring control
but the transperency information is preserved when the image is copied via drag and drop onto the frontpanel and from there into the picture ring
white is transperent in picture ring image |
|
black is transperent inpicture ring image |
|
no transperent color in image blacl-white-images |
|
I use IrfanView to save the transperent image