Is it possible to draw on <canvas> element from C++ XPCOM add-on?
Previously (long time ago probably) one could get an object of nsIDOMCanvasRenderingContext2D interface and use ti's method PutImageData_explicit in order to draw image on canvas. Nowadays, nsIDOMCanvasRenderingContext2D hides everything and I have no clue how to achieve this.
On 8/19/13 5:25 PM, [hidden email] wrote:
> Is it possible to draw on <canvas> element from C++ XPCOM add-on?
Note that the correct behavior of most of the canvas methods is very
JS-specific (e.g. the JS bindings are what handle non-finite float
arguments). There are some methods that might be usable from C++, but
they're not that common.
Please do file bugs on exposing a sane C++ canvas API as needed.