UI Interest Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

limitations of customizing controls with scalable images (whine)

I observed the following while trying to produce scalable controls, albeit simple. A pitiful example: boolean, importing simple wmf for true and false with circular gradients. The original svgs are 5kB each, converted to wmf makes 2x65kB, the saved control blows to 278kB. The circle scales, but doesn't antialias (a known fact); the mask is square, albeit in the svg the exterior of the circle is set as transparent (ported to linux it shows glossy white corners, transparency not supported, also known).

LabVIEW_2017-11-13_18-29-50.png

In contrast, customising a silver led (which has a native vertical circular shape with a vertical color gradient, and a native decal)... 5kB.

LabVIEW_2017-11-13_18-29-35.png

Undocumented and inaccessible PICC bonuses, I guess...

For a circle with a border, fine; but if I desired complex shapes, beyond what one could achieve copy-pasting any of the given round, triangular and rectangular decorations - too bad.

Passing by, it is apparent that there are many examples of controls using many native scalable polygonal shapes (Classic Toggle Switches and DSC pipes and pumps to name some), but nothing to be done about.

 

Download All
0 Kudos
Message 1 of 1
(2,871 Views)