This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
This was was cloned from bug 17577 as part of operation convergence. Originally filed: 2012-06-22 14:08:00 +0000 ================================================================================ #0 contributor@whatwg.org 2012-06-22 14:08:58 +0000 -------------------------------------------------------------------------------- Specification: http://www.w3.org/TR/2dcontext/ Multipage: http://www.whatwg.org/C#top Complete: http://www.whatwg.org/c#top Comment: Problem: How to manipulate pixels of an image that can then be affected by a transformation. Example: Load an image. Change pixels by increasing red value. Display image with a rotation. Result: Cannot be done. As far as I can tell there is no way to use pixel manipulation on a loaded image. - There is no mechanism to manipulate pixels in an image - There is no mechanism to 'put' pixels from ImageData into an image - There is no mechanism to apply a transform to ImageData - There is no mechanism to drawImage ImageData I'm either ignorant of a method or this is a serious short-coming. I recognize that the canvas may have no business altering image pixels, but some other mechanism needs to exist to apply transformations to manipulated canvas pixels. I would like to see a putImageData have a flag to indicate if transformations should apply, or, better yet, be able to drawImage(ImageData,x,y); Thank you, derek@upwithabang.com Posted from: 174.3.214.112 User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1 ================================================================================
Yeah, we should add drawImage(ImageData) at some point. In the meantime you can paint the data to a temporary canvas that you then paint on your original canvas.
Marking LATER for now. Will reopen in January and see if browsers have caught up with the last round of new features.
*** This bug has been marked as a duplicate of bug 11517 ***