LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
flarn2006

Add support for SVG images in custom controls

Status: New

Currently the only image formats still commonly used today that can be imported into custom controls are non-scalable bitmap formats. The only supported vector formats that I know of are WMF and EMF, which is almost never used anymore to my knowledge. Even worse, it doesn't support features now expected in vector formats, such as gradients and alpha transparency. So if you're developing a custom control, you have to either use an antiquated format or a bitmap format.

 

LabVIEW 2011 introduced the new Silver control set, which to my knowledge still use LabVIEW's internal PICC format, which is completely undocumented. Rather than adding gradients and other new features to this private, undocumented format and using that, it would have made a lot more sense to add support for SVG, a modern, full-featured vector format that is commonly used, and used that for the Silver controls.

 

Not only are the two vector formats LabVIEW supports ancient formats, but their inclusion almost seems like an afterthought. Imported WMF and EMF images aren't anti-aliased like the Silver controls. Because of this, it's practically impossible to create any modern-looking custom controls that look good scaled unless you don't want any diagonal lines or curves, in which case you might as well just use a bitmap.

 

Sorry for the abrupt end!

5 Comments
RavensFan
Knight of NI

Sounds like a duplicate idea.

 

Support SVG as an image format

ErnieH
Active Participant

Just curious. If an similar idea was suggested 3+ years ago and it was never considered, should it never be suggested again? An idea that old would never get many views by newer users. Is there a reasonable time lapse that a idea could be reintroduced?

Manzolli
Active Participant

When this happens I give my kudos to the original idea. The awkward thing is that the 3+ year old original idea still has a "New" status. Here I suggest some changes to the Discussion Forums status to address the issue raised by ErnieH.

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
falkpl
Trusted Enthusiast

I had requested a more vector (open and acceoted standard) based and programable for decorations 4 yeard ago, this never seemed to gain support but have a look:

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Improved-decoration-and-control-graphics/idi-p/919696

 

direct references and an api to something like SVG for graphics would be very nice, even if only a subset of such a vector graphics is supported.

 

I also agree that the ideas forum lets old ideas die, especially some of the original ideas posted befor the ideas forum took off.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
aeastet
Trusted Enthusiast

You can do some of this stuff today. It is not stright forward but it can be done. I use .png picture with 32 bit depth and I can see the alpha channels. Look at this thread and you will see how I do it and what you can do with it.

 

http://forums.ni.com/t5/LabVIEW/Custom-Button-Nugget/td-p/1564566

Tim
GHSP