Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Printing diagrams blurs SVG Graphics
Printing diagrams blurs SVG Graphics [message #1848308] Sat, 27 November 2021 13:54 Go to next message
Bernhard Edler is currently offline Bernhard EdlerFriend
Messages: 6
Registered: August 2014
Junior Member

I'm using Sirius 6.5.0. Im my VSM i style my Nodes using SVG images as WorkspaceImages.

<nodeMappings name="Plankopf" domainClass="model::Plankopf">
          <style xsi:type="style:WorkspaceImageDescription" labelSize="12" showIcon="false" labelExpression="&quot;&quot;" hideLabelByDefault="true" sizeComputationExpression="-1" resizeKind="NSEW" workspacePath="/">
            <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
            <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>

As you can see here, scaling works smoothly up to 400% zoom factor, as you would expect from SVG images.


But as soon as I export my design in any way (image, pdf, etc.), the SVG graphics get all blurry to a visible extent once printed on paper.


Any text, line shape etc. created by Sirius itself remains crisp when printed, apparently only my SVGs are scaled/rendered down. Is there any way I can manipulate the export that would result in correct print output?

best regards,
  • Attachment: editor.png
    (Size: 18.07KB, Downloaded 221 times)
  • Attachment: export.png
    (Size: 17.58KB, Downloaded 230 times)
Re: Printing diagrams blurs SVG Graphics [message #1848349 is a reply to message #1848308] Mon, 29 November 2021 12:58 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 704
Registered: July 2009
Senior Member

This is a known limitation of the current graphics pipeline. SVG images displayed by Sirius at runtime are actually bitmap renderings (at the appropriate resolution) of the original vector file.
There is no other way really, Apache Batik is the only way we have to interpret the complex SVG spec, and it knows nothing about Eclipse-specific rendering APIs, so the only common ground is to make it render a bitmap and display that.
The result is that when we *export* a diagram, all images are taken from their bitmap/raster rendering on screen.

There might be a way to improve this in the case of SVG export, and we actually plan to look at it in the next few months, but it's too early to be sure if it will work and when it would be available.


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
Previous Topic:How to build a Sirius product without using update mode?
Next Topic:How to refresh the opened Sirius Diagram Editor?
Goto Forum:

Current Time: Mon Jul 22 05:10:53 GMT 2024

Powered by FUDForum. Page generated in 0.03805 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top