Jump to content

Vector Images


Recommended Posts

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? :P

~Zack

Link to comment

QUOTE(h1voltage @ Jun 18 2007, 02:03 PM)

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:

Link to comment

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?

Link to comment

QUOTE(Val Brown @ Jun 20 2007, 01:28 AM)

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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.