W3C home > Mailing lists > Public > public-canvas-api@w3.org > July to September 2010

7-arg drawImage() call

From: Jatinder Mann <jmann@microsoft.com>
Date: Sat, 17 Jul 2010 02:14:53 +0000
To: "'public-canvas-api@w3.org' (public-canvas-api@w3.org)" <public-canvas-api@w3.org>
Message-ID: <EAACC9DF6817544486F0D0ADA05CA4281A53D846@TK5EX14MBXC113.redmond.corp.microsoft.com>
The following text from Section 12 Images [1] seems to imply a 7-argument drawImage() call:

"If not specified, the dw and dh arguments must default to the values of sw and sh, interpreted such that one CSS pixel in the image is treated as one unit in the canvas coordinate space."

To not specify those two arguments would be to make a function call like so: drawImage(image, sx, sy, sw, dx, dy). In the latest version of the spec, such a drawImage function call is not specified and neither do any of the major browser vendors implement this function. 

Was the intention of the spec to define a fourth variation of the drawImage() call? If not, we should change the text to not make such an implication.

Thanks,
Jatinder

[1] http://www.w3.org/TR/2dcontext/#images 

Jatinder Mann | Microsoft Program Manager | jmann@microsoft.com
Received on Saturday, 17 July 2010 02:15:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:31:50 UTC