aelmahalawey / androidsvg

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

SVG does not scale in last lib version #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using the following code from the home page: 

// Render our document scaled to fit inside our canvas dimensions
   svg.renderToCanvas(bmcanvas, null, 96f, AspectRatioAlignment.xMidYMid, AspectRatioScale.MEET);

In version 1.1.82 the svg is not scaled on the bitmap (an svg 240x400 takes 
only a part of 500x500 bitmap), although in 1.1.70 everything is ok, the svg 
occupies the whole bitmap. 

I am using android 4.1.2 if that matters.

Original issue reported on code.google.com by grebenyuksv on 6 Jun 2013 at 8:36

GoogleCodeExporter commented 9 years ago
Hi. Are you definitely using the exact same file in both cases?

Could you please add a comment to this bug containing the <svg> line from the 
file that is not working?

Thanks

Original comment by paul.leb...@gmail.com on 6 Jun 2013 at 10:44

GoogleCodeExporter commented 9 years ago
I haven't been able to reproduce this bug.  As long as you have a valid viewBox 
attribute in your SVG file, the document should be scaled to fill your canvas.

Please check that, and if you still think the library is not working correctly, 
please add a comment to this bug.  And if possible, send the SVG file you are 
having trouble with to me at the feedback address on the front page.  Thanks.

In the meantime, I am marking this Invalid.

Original comment by paul.leb...@gmail.com on 17 Jun 2013 at 10:51

GoogleCodeExporter commented 9 years ago
I did fix one or two issues with initial viewport calculations in the new 
release.  It is possible the issue you were seeing was related to that.

Version 1.2.0 has now been released. Please try this new version and let me 
know if it is any better. Thanks.

Original comment by paul.leb...@gmail.com on 16 Jul 2013 at 3:08