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
Hi!

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="/at.tb_gruber.designer.design/images/plankopf.svg">
            <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
            <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
          </style>
        </nodeMappings>


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

index.php/fa/41386/0/

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.

index.php/fa/41388/0/

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,
bernhard
  • Attachment: editor.png
    (Size: 18.07KB, Downloaded 206 times)
  • Attachment: export.png
    (Size: 17.58KB, Downloaded 217 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: 703
Registered: July 2009
Senior Member
Hi.

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.

Regards,


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/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: Fri Apr 26 18:09:50 GMT 2024

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

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

Back to the top