Re: Canvas, ImageData, and IE9

2011-12-07 Thread Maiku
One thing to mention with this technique is that it is based on the non-negative winding rule. This means that for complex shapes that have paths that intersect internally it will depend on the order that you draw your paths (clockwise or counter-clockwise) whether points are considered inside the

Re: Canvas, ImageData, and IE9

2011-12-06 Thread Thad
First of all, I found that I'm not the only one who stumbled on this bug. See http://groups.google.com/group/google-web-toolkit/browse_thread/thread/96f842dd3a23fc3a/cb447e0aa23997f8 Second, I have reliable workaround, at least for rectangles (and probably for lines, ovals, etc.). I've tested in

Canvas, ImageData, and IE9

2011-12-05 Thread Thad
I'm working on a small canvas drawing program with GWT 2.3 and I'm hitting a problem with IE9. After a user draws a rectangle to the canvas, I want to allow dragging or resizing. To catch the mouse down in the rectangle I'm using a technique similar to the one show in this example: