[Bug 17577] 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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17577

rcabanie <cabanier@adobe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |cabanier@adobe.com
         Resolution|                            |WONTFIX
         AssignedTo|dave.null@w3.org            |cabanier@adobe.com

--- Comment #2 from rcabanie <cabanier@adobe.com> 2012-08-21 23:41:16 UTC ---
You need to create an offscreen canvas that you load your image in if you want
to manipulate its pixels. So:
- create a HTMLImageElement, load the image
- create a canvas element that has the same dimensions as the image
- call drawimage to put the image into the canvas
- call getimagedata, manipulate the pixels and call putimagedata

The offscreen canvas can now be rotated/scaled/clipped on your screen canvas.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 21 August 2012 23:41:20 UTC