开发者

GWT/Pyjamas canvas pixel manipulation

I want to do some pixel level image manipulation for the HTML5 canvas through GWT or pyjamas. I know one way to do this in JavaScript is to use the contexts' createImageData() function to create an ImageData object, which lets you access pixel values. Is there an equivalent method for GWT/开发者_开发知识库pyjamas? Also is there a performance difference between using this ImageData object and drawing 1x1 pixel size rectangles?

Thanks!


Not sure if it helps: For GWT you can check out either one of these two libraries (not sure if they support ImageData):

http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas

http://code.google.com/p/gwt-canvas/


You can simply use JSNI to access any Javascript/HTML features not directly supported in GWT.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜