05-02-2010 08:37 AM
Hi Tom!
(Unless it is available somewhere and I missed it)
Would it be possible to expose a Merge Layers method in the Icon Editor API?
I want to create a image as a preview (without changing the icon data) but I need a way to change the Layer Data then merge it all (User, Text, Template, opacities etc...) to create a preview image.
Obviously you already do this in the IE, any chance of a method whereby I can merge all the data to get an image in the Icon Editor API?
Thanks heaps!
-JG
05-02-2010 11:52 AM
Good morning!
I just uploaded a new API.zip with
Icon Preview (VI)
Icon Preview (Library)
Icon Preview (LVClass)
Greets
05-02-2010 06:24 PM
Sweet dude!
I can't wait to check it out.
Congrats on your first post to LAVA too
Regards
-JG
05-03-2010 04:18 AM
Hey Tom
Just tried the new api.
Is there any way to merge all the data and see the image data (picture) but not update the e.g. the Class's icon?
In essence: getting a true preview before applying changes?
(If not, I can always just update the icon then set it back to previous data if the user e.g . cancels).
Thanks!
-JG
05-03-2010 08:10 AM
Hey Jonathon,
I thought the 'Icon Preview' VI does return the image in 1bit and 24bit format.
It doesn't overwrite the icon information itself, it just reads it and merges all layers to get the true icon picture.
Did you use one of these VIs (Lib, LVClass and/or VI)?
Tom
05-03-2010 08:10 PM
Hey Tom
The current Preview VIs show the current icon (this is cool - thanks).
This is the same as calling the GET ICON Method (then converting the image data to a picture)
However, I would like to alter the data e.g. User Layer(s) then preview it before I set it as the actual icon, which I cannot seem to do.
Is it possible for you to output the image data along with the two icons as well? (please)
That would be handy too.
Here is a prototype I am thinking of.
I would be a Public "helper" function to compliment the API.
Is this possible?
What are your thoughts?
Cheers
-JG
[Attached file LV2009]
05-03-2010 08:22 PM
Now I got it!
I thought you want to have a preview of the already set icon.
I'll implement this right now.
Dunno how long it will take me, but it shouldn't be too terribly long.
Tom
05-03-2010 09:09 PM
Whilst you are coding...
Some small fixes:
1) The Set Icon's library-method-polymorphic-selector-text is "Lib" not "Library"
2) Both Get Icon and Set Icon polymorphic VIs have no icon.
Attached are the icons I used (to save you the work if you want to use them?)
Cheers
-JG
05-03-2010 09:26 PM
Done.
I have added a VI called
Icon Preview (Offline).
None of the inputs is required though.
I have added it to the GET Icon poly as an independent item.
(GET and SET Icon do have an icon now (I was being lazy) and I reworded Lib to Library)
05-03-2010 09:48 PM
(I am getting your messages via feed but not in this thread?)
Cool, can't wait to try it.
Thanks
-JG