M1cha / androidsvg

Automatically exported from code.google.com/p/androidsvg
0 stars 0 forks source link

Pattern fills are rendered with visible grid #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hey, first of all I want to thank you! androidsvg is THE BEST android svg 
parser/renderer that I came across.
I found small problem if you have a pattern fill there are tiny hairline gaps 
between pattern repetitions. Please try attached svg and you will see yourself.

Original issue reported on code.google.com by asyschi...@gmail.com on 18 Mar 2015 at 1:06

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the report.  I will look into this.

Original comment by paul.leb...@gmail.com on 18 Mar 2015 at 7:53

GoogleCodeExporter commented 9 years ago
AndroidSVG probably does patterns in a different way from the browsers.  I 
might have to change the way I do it to avoid issues like this.

I haven't tested this myself, but a possible workaround is to make sure that 
your patterned rectangle starts on a pixel boundary.  For example, change:

<rect ... x="161.0611" y="243.23929" />

to

<rect ... x="161" y="243" />

That might avoid or reduce the effect.

Original comment by paul.leb...@gmail.com on 18 Mar 2015 at 9:24

GoogleCodeExporter commented 9 years ago
I changed all coordinates to integer numbers , rect sizes, transformations etc 
and grid lines disappeared. Which is totally cool for me, because I just 
created that SVG in Inkspace so having float coordinates was not really a must. 
Thanks! 

Original comment by asyschi...@gmail.com on 18 Mar 2015 at 9:55

GoogleCodeExporter commented 9 years ago
I'm pleased that worked.  Thanks for letting me know.

Original comment by paul.leb...@gmail.com on 18 Mar 2015 at 10:01