08-12-2010 07:28 AM
Hi,
I am looking for a posibility to dynamicaly change the background image of a vi.
See attached example: The switch should change the circle-image into a box-image. the two images are overlaid and I thought I could make one image visible and the other invisible, but the images have no terminal in the block diagramm...
Any idea?
Solved! Go to Solution.
08-12-2010 07:53 AM
Now i tried to insert a picture in my vi and read a box-image or a circle image, depending on what I want as background.
How do you like this idea?
I have some problems loading and displaying the picture - I have no idea how to convert the jpeg-data into "picture-data". see attached vi. I have no idea what's wrong and I can not find any "jpg-to-picture"-vi 😞
08-12-2010 07:53 AM
Why must the image have no terminal?
a picture box control or a custom boolean is an easy method for doing exactly this,
The hard way with no terminal is to get a reference to the decoration (not easy since the decorations do not have lables and are an indexed object of the pane on which it resides).
There is also a pane image property to change the entire background. I would stick with the picture box control if it was me (make the borders transparent).
08-12-2010 07:58 AM
Thank you Paul. As you can see, that was my idea too 🙂 But I have stil problems
08-12-2010 08:02 AM
See attached:
08-12-2010 08:04 AM
You will need a down convert for 7.1. Dont have it on my PC.
I used a picture ring Make the images with decorations (btw use a gif allows for transparent images on import) and pasted them in the image ring. took about 30seconds.
08-12-2010 08:06 AM - edited 08-12-2010 08:10 AM
I can not open LV 9.0-VIs
Could you please either save it as 7.1 or upload a screenshot?
Thanks.
BTW here is a screenshot of my problem:
08-12-2010 08:14 AM - edited 08-12-2010 08:15 AM
Ok,
thanks! It works well with the image ring 🙂
08-12-2010 08:21 AM
Try putting the Draw Flattened Pixmap VI where your broken wire is.