W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > December 2010

[Bug 11566] New: Image should have getContext(...) just like canvas

From: <bugzilla@jessica.w3.org>
Date: Fri, 17 Dec 2010 05:14:54 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-11566-2486@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11566

           Summary: Image should have getContext(...) just like canvas
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: warcraftthreeft@sbcglobal.net
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


This would remove the problem of having to generate new canvases and render an
image to them to do trivial operations like getting the ImageData.

var image = new Image();
var imageData;
image.onload = function()
{
    imageData = image.getContext("2d").getImageData(0, 0, image.width,
image.height);
}
image.src = "example.png";

http://www.w3.org/TR/html5/embedded-content-1.html#the-img-element

-- 
Configure bugmail: http://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, 17 December 2010 05:14:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 17 December 2010 05:15:01 GMT