Rank: Advanced Member
Groups: Guest
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:
Graphicsmill:
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 10 time(s). Thanks
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 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
|
1 user thanked Fedor for this useful post.
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
We fixed the problem in the version 9.1.28 of Graphics Mill. |
Best regards, Fedor Skvortsov
|
1 user thanked Fedor for this useful post.
|
|
|
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.