RESOLVED FIXED 19789
[CAIRO] stroke and fill color in Canvas
https://bugs.webkit.org/show_bug.cgi?id=19789
Summary [CAIRO] stroke and fill color in Canvas
Dirk Schulze
Reported 2008-06-27 05:29:14 PDT
If you apply a fill and a stroke color to the context, the last defined color is used to fill a path/rect (strokeRect() isn't apllied at all). It's because solid colors are applied to one source pattern. We can't save different colors in cairo. But perhaps we can use patterns for solid colors? A fill pattern and a stroke pattern to fill/stroke pathes/rects with this patterns combined with CAIRO_EXTEND_REPEAT.
Attachments
Example (471 bytes, text/html)
2008-06-27 05:34 PDT, Dirk Schulze
no flags
Example (616 bytes, text/html)
2008-06-28 08:49 PDT, Dirk Schulze
no flags
Dirk Schulze
Comment 1 2008-06-27 05:34:19 PDT
Created attachment 21970 [details] Example short example
Dirk Schulze
Comment 2 2008-06-28 08:49:02 PDT
Created attachment 21987 [details] Example a better testcase. strokeRect() has a bug too :-)
Dirk Schulze
Comment 3 2008-08-18 06:39:55 PDT
Note You need to log in before you can comment on or make changes to this bug.