This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11565 - Add drawImage(in ImageData image, ...) functions to context2d
Summary: Add drawImage(in ImageData image, ...) functions to context2d
Status: RESOLVED DUPLICATE of bug 11517
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML Canvas 2D Context (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-17 04:52 UTC by Sirisian
Modified: 2011-08-04 05:04 UTC (History)
4 users (show)

See Also:


Attachments

Description Sirisian 2010-12-17 04:52:31 UTC
Add these two lines:

void drawImage(in ImageData image, in double dx, in double dy, in optional double dw, in double dh);
void drawImage(in ImageData image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);

to:
http://www.w3.org/TR/2dcontext/#conformance-requirements

Usage scenario. You have a large image that you want to render a portion to the screen without overwriting the whole canvas. (Pretend part of it is transparent). You also want the ability to change pixel info quickly and ImageData allows that.
Comment 1 Ian 'Hixie' Hickson 2011-01-11 05:12:45 UTC

*** This bug has been marked as a duplicate of bug 11517 ***
Comment 2 Michael[tm] Smith 2011-08-04 05:04:09 UTC
mass-move component to LC1