h1voltage Posted June 19, 2007 Report Share Posted June 19, 2007 As the result of a good number of "Save as for Web" commands in Photoshop to make the three button modes of a system button (Up, Down, and Highlight), I have been looking for a method of importing vector-scalable graphics into LV. http://forums.lavag.org/index.php?act=attach&type=post&id=6138 Is there a way to import formats like .svg? If not, has anyone comeup with a clever scaling method? Possibly some XControl trickery? ~Zack Quote Link to comment
PJM_labview Posted June 20, 2007 Report Share Posted June 20, 2007 LabVIEW support WMF and EMF too(I think). Just drag and drop them on your FP. You could also convert your svg to WMF. Note: these image types are scalable. PJM Quote Link to comment
Justin Goeres Posted June 20, 2007 Report Share Posted June 20, 2007 QUOTE(h1voltage @ Jun 18 2007, 02:03 PM) Is there a way to import formats like .svg? If not, has anyone comeup with a clever scaling method? Possibly some XControl trickery? ImageMagick, which you can access using the LVOOP ImageMagick Interface library in the Code Repository reads & writes (& scales, etc.) SVG data, although I had to update to the latest version (6.3.4-Q16) to get SVG handling to work (I'm not the only one): http://forums.lavag.org/index.php?act=attach&type=post&id=6145 However, that just gets it into a picture contol (or a file of a different format). I'm not sure that helps you real directly. EDIT: The screenshot shows a "-resize 750" on the block diagram, but the front panel shows a "-resize 500". That's because the two screenshots aren't from the same run :headbang: Quote Link to comment
h1voltage Posted June 20, 2007 Author Report Share Posted June 20, 2007 QUOTE(Justin Goeres @ Jun 19 2007, 09:21 AM) ImageMagick, which you can access using the LVOOP ImageMagick Interface library in the Code Repository reads & writes (& scales, etc.) SVG data, although I had to update to the latest version (6.3.4-Q16) to get SVG handling to work (I'm not the only one):http://forums.lavag.org/index.php?act=attach&type=post&id=6145 However, that just gets it into a picture contol (or a file of a different format). I'm not sure that helps you real directly. EDIT: The screenshot shows a "-resize 750" on the block diagram, but the front panel shows a "-resize 500". That's because the two screenshots aren't from the same run :headbang: Combined with some scripting, this could work for creating a button programmtically. Unfortunately, I do not have enough experience with scripting to make a usable too. Has anyone been able to use scripting with picture controls? Quote Link to comment
Yair Posted June 20, 2007 Report Share Posted June 20, 2007 If I remember correctly, editing controls is not exposed through the scripting interface, but working with WMF is demonstrated in the thread I linked to in one of your previous threads. Quote Link to comment
Val Brown Posted June 20, 2007 Report Share Posted June 20, 2007 Could you repost that link here? Quote Link to comment
Mike Ashe Posted June 21, 2007 Report Share Posted June 21, 2007 As I recall, if you use EMF (Enhanced Meta file) you not only get scalable graphics, but you get transparency as well. Quote Link to comment
Yair Posted June 21, 2007 Report Share Posted June 21, 2007 QUOTE(Val Brown @ Jun 20 2007, 01:28 AM) Could you repost that link here? http://forums.ni.com/ni/board/message?board.id=170&message.id=231915' target="_blank">Here. It shows a basic example. Incidentally, the easy way to find something like this, since I mentioned it was in one of the OP's other threads, is to click the user's name and select the option for viewing their threads. 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.