W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2011

[whatwg] getImageData(), the canvas backing store, and device pixels != CSS pixels

From: Edward O'Connor <eoconnor@apple.com>
Date: Thu, 29 Sep 2011 16:22:47 -0700
Message-ID: <m2mxdnq6go.fsf@eoconnor.apple.com>

Re: http://krijnhoetmer.nl/irc-logs/whatwg/20110930#l-81

An example in ? Pixel Manipulation[1] states that "the data
returned by getImageData() is at the resolution of the canvas backing
store, which is likely to not be one device pixel to each CSS pixel if
the display used is a high resolution display."

This should probably be moved out of the example and into the main prose
of the spec. It's easy for implementors to overlook normative statements
made in examples.


1. http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#pixel-manipulation
Received on Thursday, 29 September 2011 16:22:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:36 UTC