This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17960 - Add support for drawImage(ImageData, ...)
Summary: Add support for drawImage(ImageData, ...)
Status: RESOLVED DUPLICATE of bug 11517
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 enhancement
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard: v2 (actually like v7)
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 07:23 UTC by contributor
Modified: 2013-03-19 19:38 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-07-18 07:23:55 UTC
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
================================================================================
Comment 1 Ian 'Hixie' Hickson 2012-07-26 04:38:39 UTC
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.
Comment 2 Ian 'Hixie' Hickson 2012-10-02 19:51:12 UTC
Marking LATER for now. Will reopen in January and see if browsers have caught up with the last round of new features.
Comment 3 Ian 'Hixie' Hickson 2013-03-19 19:38:15 UTC

*** This bug has been marked as a duplicate of bug 11517 ***