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 24301 - Provide ImageData constructor.
Summary: Provide ImageData constructor.
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-15 15:55 UTC by contributor
Modified: 2014-03-23 01:55 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2014-01-15 15:55:29 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#imagedata
Complete: http://www.whatwg.org/c#imagedata
Referrer: 

Comment:
Provide ImageData constructor.

Posted from: 207.218.72.65
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.18 Safari/537.36
Comment 1 Anne 2014-01-15 15:56:45 UTC
http://stackoverflow.com/questions/13626465/how-to-create-a-new-imagedata-object-independently should not be that hard. The obvious way to do things should work.

I think making it accept a dictionary as single argument where you can specify the various features makes the most sense.

W3C HTML has this apparently and Gecko is planning on adding something: https://bugzilla.mozilla.org/show_bug.cgi?id=959958
Comment 2 contributor 2014-01-15 22:07:02 UTC
Checked in as WHATWG revision r8397.
Check-in comment: Add a couple of ImageData() constructors, and (in order to make that feasible) drop all the HD stuff on <canvas>.
http://html5.org/tools/web-apps-tracker?from=8396&to=8397
Comment 3 rcabanie 2014-03-23 01:55:27 UTC
(In reply to contributor from comment #2)
> Checked in as WHATWG revision r8397.
> Check-in comment: Add a couple of ImageData() constructors, and (in order to
> make that feasible) drop all the HD stuff on <canvas>.
> http://html5.org/tools/web-apps-tracker?from=8396&to=8397

Wasn't the HD stuff removed a while ago? I wonder how it snuck back into the spec.