This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
See http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#drawing-images-to-the-canvas The text for drawImage currently states: When drawImage() is invoked, the region of the image specified by the source rectangle must be painted on the region of the canvas specified by the destination rectangle, after applying the current transformation matrix to the points of the destination rectangle. This is a bit confusing since you don't really apply the transform to the points. Basically, you map the source rect to the destination rect and then transform the destination rectangle. I believe the spec should also call out that there should be no loss of precision when doing this (i.e. if the destination has half the pixels but scaled by 2, the original pixel should be preserve)
> This is a bit confusing since you don't really apply the transform to the > points. Basically, you map the source rect to the destination rect and then > transform the destination rectangle. Well it doesn't really matter since you can't do perspective transforms. But yeah, I've changed this to transform the rectangle, not the points. > I believe the spec should also call out that there should be no loss of > precision when doing this (i.e. if the destination has half the pixels but > scaled by 2, the original pixel should be preserve) Could you elaborate on this? I don't understand what it means.
Checked in as WHATWG revision r7677. Check-in comment: Be more precise by having fewer words... http://html5.org/tools/web-apps-tracker?from=7676&to=7677
cabanier: please see the end of comment 1; don't hesitate to reopen the bug if you think there's more that needs fixing here