Is there a way to do image color filtering in Google Web Toolkit? Something like Color Matrix Filter using Action Script 3. Here is action script example:
AS3:How to change a colored Bitmap's BitmapData to black and white?
Is there a way to do image color filtering in Google Web Toolkit? Something
Share
For image manipulation in HTML (and therefore GWT) you need to use the canvas element. To my knowledge canvas doesn’t give you any shortcuts for applying filters, you will need to get in and modify the pixels by hand. Let’s use black-and-white as an example. You need to be sure that the image has already loaded before you can call this method:
Not quite as elegant as actionscript but it will do the job. As you can imagine this will chew up a good deal of processor time on larger images, if you need better performance you might consider gwtgl.