andreyz30001 / flashcanvas

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

Multi-point paths drawn incorrectly #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Draw a path using a few hundred coordinates, like so:
...
ctx.lineTo( 1.5, 1.3 );
ctx.lineTo( 3.0, 9.0 );
ctx.lineTo( 3.7, 7.8 );
ctx.lineTo( 4.5, 6.5 );
...

This works nicely in IE9/FF7/Chrome yet is drawn incorrectly in IE6 and 7 (and 
probably 8 too, didn't test that)

See http://jsfiddle.net/TXJ9M/2/

Problem appears in both Flashcanvas-20110201 and r221.

Original issue reported on code.google.com by ashvinja...@gmail.com on 7 Oct 2011 at 6:51

GoogleCodeExporter commented 8 years ago
Thank you for your bug report. But the problem is not in FlashCanvas library, 
but in the renderer of Flash Player.

I created an SWF file, which should draw the same figure as your JS code. But 
its result was also incorrect. (See the attached file.)

Probably we can't solve this problem unless FlashPlayer corrects the bug in its 
renderer.

Original comment by revu...@gmail.com on 11 Oct 2011 at 6:26

Attachments:

GoogleCodeExporter commented 8 years ago
It looks like setting pixelHinting to false makes it a lot better. It's still 
not perfect though, especially with thicker line widths.

Is there a way to set this option in the JS library?
Cheers.

Original comment by ashvinja...@gmail.com on 11 Oct 2011 at 6:44

GoogleCodeExporter commented 8 years ago
Oh, I didn't notice that solution.

OK. I'll try to adjust the code so that the pixelHinting is automatically set 
to false when the line width is thick enough.

Original comment by revu...@gmail.com on 11 Oct 2011 at 7:12

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r222.

Original comment by revu...@gmail.com on 11 Oct 2011 at 8:26