greatwar93 / gwt-g2d

Automatically exported from code.google.com/p/gwt-g2d
0 stars 0 forks source link

toDataUrl() not supporting any arguments (mime type plus args) #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It seems toDataURL() should accept at least an optional argument of mime type 
(eg "image/png").

(Apparently there are more var-arg args, but I've not found any examples)

http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.h
tml#dom-canvas-todataurl

Thanks
N.

Original issue reported on code.google.com by numberon...@gmail.com on 2 Jul 2010 at 10:33

GoogleCodeExporter commented 8 years ago
Added an overload method that accepts the mime type argument. I am not sure how 
to pass variable arguments to javascript though...

The changes can be found in the trunk. You can use the pre-alpha version in the 
trunk until it is released in the download section.

Original comment by hao1...@gmail.com on 4 Jul 2010 at 4:12