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

Re: Canvas drawImage question

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 11 Jun 2010 12:46:13 -0400
Message-ID: <4C126855.8050103@mit.edu>
To: Philip Taylor <pjt47@cam.ac.uk>
CC: James Graham <jgraham@opera.com>, HTML WG <public-html@w3.org>
On 6/11/10 12:24 PM, Philip Taylor wrote:
> I can't think of many likely use cases where an image is used both as a
> visible part of the page and on a canvas

Fwiw, a number of demos I've seen do just this (you select a visible 
image and then something is done to it).

> (Currently drawImage's behaviour for not-yet-loaded images is defined in
> terms of the "complete" attribute, which seems to only exist on
> HTMLImageElement and not HTMLInputElement, so that behaviour would have
> to be defined differently if new image sources are added.)

Right, that's why I brought up the issue; I was implementing that behavior.

-Boris
Received on Friday, 11 June 2010 16:46:48 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:18 UTC