A while ago you guys gave me a splendid workaround to the rasterization bug in exported BarCharts.
Now I noticed that the workaround is not working for BarLegends. My problem is, that
legend = BarLegend["Rainbow"] Export["E:\\test.emf", legend];
produces a clearly rasterized file.
Is there any way to get a vector graphic from this simple plot?