04-24-2012 11:39 AM
Hi All,
I have a picture ring, which has several png images.
Now I want to save those images as separate files. Any way to export them from the ring?
Thanks,
Anne
Solved! Go to Solution.
04-24-2012 12:33 PM
Save your ring as a Custom Control (Advanced->Customize then simply save to a .ctl file). Then run the code in the following snippet (I do not make my hacks user friendly so be sure to browse to the paths before running). All of the images are exported into the folder you specify.
04-24-2012 12:40 PM
Could you please save it to a Labview8.5.1 vi? I am using Labview 8.5.1 and couldn't open your vi.
Thanks a lot for helping and I really appreciate it.
Anne
04-24-2012 12:42 PM
Here you go in LV8.5.
04-24-2012 12:47 PM
I was thinking that you could extract part of the front panel to get the image, convert it to png and repeat for each item in the ring.
It gets ugly if I leave the Increment/Decrement button visible but that can be overcome.
04-24-2012 01:11 PM
Could you please send me the "PNG data to LV Image.vi" too? I don't have it.
Thanks a lot.
Anne
04-24-2012 01:15 PM - edited 04-24-2012 01:16 PM
I got rid of that and added a small fix since it turns out there are (at least) two different ways that the images are stored and I forgot that I typically ditch that VI anyway since it does not handle transparency. VI attached in 8.5, changes shown here:
If you attach your .ctl file I could verify that it works as well.
04-24-2012 01:35 PM
Thanks a lot, everyone.
It works and I got all those transparent png images.
I appreciate your help and have a good day.
Anne
10-16-2014 03:35 PM
Thanks for this example, it worked well. I was able to quickly extract the pictures in my picture ring.
10-16-2014 03:41 PM
@John92124 wrote:
Thanks for this example, it worked well. I was able to quickly extract the pictures in my picture ring.
We give thanks around here with Kudos.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord