12-03-2020 10:36 AM
In memory streams works fine too, different use cases for both. WebServices library includes more dependencies. Too bad NI doesn't provided a public OOTB method to convert wmf/emf to png. Or better yet, supports palette item name or palette item path with the App : Palette : Get Palette Item Icon invoke method. Right?
12-03-2020 10:47 AM
@rcpacini wrote:
In memory streams works fine too, different use cases for both. WebServices library includes more dependencies. Too bad NI doesn't provided a public OOTB method to convert wmf/emf to png.
The WebServices library adds a different dependency, not more dependencies per se (Load PNG is also a dependency).
It's not that hard to copy that VI outside the library. There's nothing WebServices related to it. It's just a call to LabVIEW.exe. The VI is used by WebServices, not vice versa.
@rcpacini wrote:
Or better yet, supports palette item name or palette item path with the App : Palette : Get Palette Item Icon invoke method. Right?
It's weird that the method returns a wmf byte stream, while it's probably always a raster image in a wmf... Returning a pixmap makes more sense. Wmf is probably more convenient for the routine that draws the palette, that is not a VI. We where probably never considered as a user of this method.
But yes, it could be improved.
12-03-2020 12:21 PM