SVGExporter: Correct image pixelation.

This commit is contained in:
2xB 2020-04-08 01:14:36 +02:00
parent 88931bc4a5
commit 1e81f3dad0

View File

@ -69,6 +69,13 @@ xmlHeader = """\
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.2" baseProfile="tiny">
<title>pyqtgraph SVG export</title>
<desc>Generated with Qt and pyqtgraph</desc>
<style>
image {
image-rendering: crisp-edges;
image-rendering: -moz-crisp-edges;
image-rendering: pixelated;
}
</style>
"""
def generateSvg(item, options={}):