youcef92 / flotr

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

savePNG returns invalid scaled image (on FF6) #206

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Render some graph
2. Apply a graph.flotr.saveImage("png", graph.flotr.canvasWidth-1, 
graph.flotr.canvasHeight-1, true);
3. The image rendered is scalled inproperly

What is the expected output? What do you see instead?
Properly scalled image

What version of the product are you using? On what operating system?
r345 on FF6 @ Win64

Please provide any additional information below.
It looks like removing some parameters in Canvas2Image > scaleCanvas > 
drawImage fixes problem:
Line 141: oSaveCtx.drawImage(oCanvas, 0, 0, oCanvas.width, oCanvas.height);//, 
0, 0, iWidth, iWidth);

Original issue reported on code.google.com by kamilkam...@gmail.com on 9 Sep 2011 at 10:56

Attachments:

GoogleCodeExporter commented 8 years ago
I forgot to mention, I am trying to get image of flotr.canvasWidth, 
flotr.canvasHeight dimensions.

Original comment by kamilkam...@gmail.com on 9 Sep 2011 at 11:00