M1cha / androidsvg

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

Rendering to RGB_565 Bitmap fails #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bitmap bm = Bitmap.createBitmap((int) w, (int) h, Bitmap.Config.RGB_565);
Canvas bmcanvas = new Canvas(bm);

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

What is the expected output? What do you see instead?
A bitmap with the rendered SVG, instead the application closes without an 
exception.

What version of the product are you using? On what operating system?
Latest version

Please provide any additional information below.

Original issue reported on code.google.com by argonned...@gmail.com on 17 Jun 2013 at 7:35

GoogleCodeExporter commented 9 years ago
Rendering to an RGB_565 bitmap works fine for me.  Could you check again 
please?  If you can still reproduce the problem, please update the bug and, if 
possible, send me some sample code and an SVG file at the feedback address on 
the front page.  Thanks.

I am going to mark this as Invalid in the meantime.

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

GoogleCodeExporter commented 9 years ago
I got problems, at least with the attached file (snake.svg)

Original comment by argonned...@gmail.com on 17 Jun 2013 at 9:03

Attachments: