LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vector graphic

Hello!

 

I use inkscape for drowing nice icons to put them into LabVIEW custom controls. As I can see LabVIEW doesn't support SVG format, but EMF, WMF and probably should support EPS.

The problem is EMF files can't contain gradients and EPS can't be imported into LabVIEW (why?).

 

I need nice icons as vector graphics with gradience, but it seems to be not possible. Any ideas?

 

Here a VI with a EMF graphic. Try to rresize the front panel, it works nice (without resolution lost), but as I sad EMF doesn't know gradient.

Message Edited by Eugen Graf on 02-09-2009 05:20 AM
0 Kudos
Message 1 of 7
(8,559 Views)
I don't know why gradients aren't supported. It is in the EMF standard, so
it should work.

But this piece of code is really old. It has been around since LV 4, and
possibly before that. It hasn't changed much, although at some time, it
became possible to import PNG files as well, IIRC.

EPS is really a programming language on it's own, and it will be a lot of
work to embed this in LabVIEW.

SVG is relitivelly new, and it wasn't there when they worked on the import
of graphics code.

I think it would be best if NI finished the EMF implementation, or extend it
to EMF PLUS. Adding EPS or SVG seems nice, but doesn't add much
functionality, and will increase the size of LV.

To get gradients, I think the only way it to add bitmapped graphics to the
EMF. I know you will probably get aliasing...

Else, you have to redraw the gradients yourself in a picture control after
each resize. That will bloat your code.

Regards,

Wiebe.


0 Kudos
Message 2 of 7
(8,527 Views)

 

In trying to make LabVIEW control a small CAD application, I too thought that Inkscape / SVG might be a good starting point. I considered coding in LabVIEW to handle the vector portions of SVG. LabVIEW's already happy with XML, so the question is: what subset of SVG tags need to be coded for.

 

Maybe that's what THIS is for: http://www.w3.org/TR/SVGTiny12/ but as it says, it's a subset for CREATING SVG files. There's no guarantee that the implemented subset would be able to READ Inkscape's SVG files.

 

That one's on the back burner for now.

 

Message Edited by kdmcmullan on 02-10-2009 06:19 AM
0 Kudos
Message 3 of 7
(8,521 Views)

Will NI LabVIEW not (good) support vector graphics?

 

The same asked here:

http://decibel.ni.com/content/message/8442#8442

 

May be it should go into the featurerequest list for the next version of LabVIEW?

 

 

Regards, Eugen

0 Kudos
Message 4 of 7
(8,328 Views)

+1 for SVG support.

 

The advantage over EMF, WMF and EPS in IMO would be that it's a standard by W3C. It would be great, if SVG could be used for icons or for background images.

 

 ARUN

0 Kudos
Message 5 of 7
(8,219 Views)

If you're interested in seeing this in a future version of LabVIEW, you could post this as an idea on the LabVIEW Idea Exchange!

 

Greg Stoll

National Instruments

Greg Stoll
LabVIEW R&D
Message 6 of 7
(8,212 Views)
ok, posted a message at the idea exchange
Message 7 of 7
(8,188 Views)