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

           Summary: 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
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#top
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML Canvas 2D Context (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


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

-- 
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 Friday, 22 June 2012 14:09:05 UTC