qingyangmoke / explorercanvas

Explorercanvas (excanvas.js) is an open source, Apache-licensed JavaScript library that implements the canvas API in Internet Explorer
Apache License 2.0
0 stars 0 forks source link

drawImage() does not work when image source is another canvas object #92

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create first canvas
2. Create second canvas
3. Use first.drawImage( second,...). In IE will not work.

What is the expected output? What do you see instead?
Expected the same behavior as in other browsers, which are supporting canvas as 
an image source for drawImage

What version of the product are you using? On what operating system?
excanvas.js r73 on Windows 7, IE 8

Please provide any additional information below.
Seems like this behavior occurs in case excanvas expecting only <img src=""> as 
an image source for drawImage(). Possible solution is to check if passed image 
is another canvas object and perform a valid staff to process it correctly.

Original issue reported on code.google.com by mik...@gmail.com on 8 Dec 2010 at 8:47

GoogleCodeExporter commented 9 years ago
This would be extremely helpful to me.

Original comment by alil...@gmail.com on 9 Jan 2011 at 1:10

GoogleCodeExporter commented 9 years ago
as an alternative would be nice to have a posibility to pass image object 
instead of second canvas, so it will look like this:

var image = context2.getImageData(0, 0, canvas2.width, canvas2.height);
context1.drawImage(image, 0, 0, canvas1.width, canvas1.height);

but the problem is that excanvas.js doesn't have implemented any of 
getImageData,putImageData,createImageData 

so it would be very helpful to have them too. 

Original comment by dob...@gmail.com on 26 Jan 2011 at 10:23

GoogleCodeExporter commented 9 years ago
Is drawImage technically possible even using IE's VML? 
If so this feature would be extremely useful.

Original comment by davidno...@gmail.com on 18 Aug 2011 at 9:42