Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Chris Jones  
#1 Posted : Wednesday, June 7, 2017 1:38:13 AM(UTC)
Chris Jones

Rank: Advanced Member

Groups: Member
Joined: 6/9/2016(UTC)
Posts: 34

Thanks: 22 times
I'm trying out reading in SVG files and rendering them but the rendering only seems approximate, curves are converted into lines. I've attached a screenshot from inkspace and the bitmap ive generated from the svg (plain svg saved from inkscape). There are noticable quality differences which makes it unusable for us.

Inkscape:

inkscape.PNG

Graphicsmill:

graphicsmill.png

Is this a graphicsmill limitation or a problem with my code?

Code:


         var dpi = 600f;
         using (var reader = new SvgReader(@"E:\temp\svg\test3.svg", dpi, dpi))
         using (var container = reader.GetContent())
         using (var bitmap = new Bitmap(container.Width, container.Height, PixelFormat.Format32bppArgb, RgbColor.White))
         using (var graphics = bitmap.GetAdvancedGraphics())
         {
            bitmap.DpiX = dpi;
            bitmap.DpiY = dpi;

            // Draw the container on the bitmap.
            graphics.DrawContainer(container, 0, 0);
            bitmap.Save(@"E:\temp\svg\test3_output.png");
         }

Here's the SVG file (i added .txt extension so i could attach it here):

test3.svg.txt (5kb) downloaded 7 time(s).

Thanks

Fedor  
#2 Posted : Thursday, June 8, 2017 2:49:25 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,567

Thanks: 5 times
Was thanked: 64 time(s) in 63 post(s)
Hi Chris,

We confirm the problem and will fix it shortly (Aurigma Bug #0023401).

You an expect an update within a month. I will keep you informed of the status.

Best regards,

Fedor Skvortsov

thanks 1 user thanked Fedor for this useful post.
Chris Jones on 6/8/2017(UTC)
Fedor  
#3 Posted : Monday, July 31, 2017 8:24:17 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,567

Thanks: 5 times
Was thanked: 64 time(s) in 63 post(s)
We fixed the problem in the version 9.1.28 of Graphics Mill.
Best regards,

Fedor Skvortsov

thanks 1 user thanked Fedor for this useful post.
Chris Jones on 8/1/2017(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.