<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Canvas in IE</title>
	<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/</link>
	<description>The journal of Emil A Eklund</description>
	<pubDate>Fri, 09 May 2008 23:47:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>

	<item>
		<title>by: AlanH</title>
		<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-168355</link>
		<pubDate>Sun, 16 Mar 2008 20:25:07 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-168355</guid>
					<description>Hi. Great work! 

I've just started trying to implement an animated game replay as a web service, using Canvas in FF/Safari. It's pretty fast and effecitve, and I want to port it to IE.

The excanvas.js library gets me some way there - I believe this was based on your work. However, the clearRect() only does a global clear. For major performance reasons, I really need to be able to clear previously drawn elements selectively, and then redraw those areas. Clearing the entire canvas and redrawing it from scratch gets painfully slow when trying to animate a complex view.

I could probably get by if clearRect just deleted all existing elements that intersect the specified rectangle, or that are entirely contained within it. (with maybe even a mode switch to select which?). Is this feasible? I've had a quick look at the way the elements are set up in VML, and it seems there's no easy way to delete an individual item in a path. Should I create separate canvasses for each component of the view, overlaid in each other, so that I can clear a specific canvas? How is page performance affected by having lots of overlaid canvasses?

One other thing I found out - I had a CSS rule that applied to  divs nested in the same parent as my canvas elements. That was overriding the CSS that excanvas defines for the VML div. It was easy to fix by making the CSS rule more explicit, but it may be worth noting for other users.

Alan</description>
		<content:encoded><![CDATA[<p>Hi. Great work! </p>
<p>I&#8217;ve just started trying to implement an animated game replay as a web service, using Canvas in FF/Safari. It&#8217;s pretty fast and effecitve, and I want to port it to IE.</p>
<p>The excanvas.js library gets me some way there - I believe this was based on your work. However, the clearRect() only does a global clear. For major performance reasons, I really need to be able to clear previously drawn elements selectively, and then redraw those areas. Clearing the entire canvas and redrawing it from scratch gets painfully slow when trying to animate a complex view.</p>
<p>I could probably get by if clearRect just deleted all existing elements that intersect the specified rectangle, or that are entirely contained within it. (with maybe even a mode switch to select which?). Is this feasible? I&#8217;ve had a quick look at the way the elements are set up in VML, and it seems there&#8217;s no easy way to delete an individual item in a path. Should I create separate canvasses for each component of the view, overlaid in each other, so that I can clear a specific canvas? How is page performance affected by having lots of overlaid canvasses?</p>
<p>One other thing I found out - I had a CSS rule that applied to  divs nested in the same parent as my canvas elements. That was overriding the CSS that excanvas defines for the VML div. It was easy to fix by making the CSS rule more explicit, but it may be worth noting for other users.</p>
<p>Alan
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: momoc_a &#187; 又有新玩具：Canvas</title>
		<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-148352</link>
		<pubDate>Wed, 09 Jan 2008 08:52:55 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-148352</guid>
					<description>[...] canvas 是一个新的 html 元素，用来做为程序代码绘图的画布。而且 JavaScript 就能设定各项绘图指令。不过在 IE 下必须加载 这个 js 才能显示效果。 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] canvas 是一个新的 html 元素，用来做为程序代码绘图的画布。而且 JavaScript 就能设定各项绘图指令。不过在 IE 下必须加载 这个 js 才能显示效果。 [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: indir</title>
		<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-128287</link>
		<pubDate>Sat, 03 Nov 2007 11:17:43 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-128287</guid>
					<description>wonderful work indeed. Thanks.</description>
		<content:encoded><![CDATA[<p>wonderful work indeed. Thanks.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mark</title>
		<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-128074</link>
		<pubDate>Thu, 01 Nov 2007 23:37:58 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-128074</guid>
					<description>What is the memory consamption of a canvas? If I paint an image on a canvas will it consume the same resources when loading the image as BMP file?</description>
		<content:encoded><![CDATA[<p>What is the memory consamption of a canvas? If I paint an image on a canvas will it consume the same resources when loading the image as BMP file?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: indir</title>
		<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-128047</link>
		<pubDate>Thu, 01 Nov 2007 19:24:43 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-128047</guid>
					<description>I have a problem with ARC STYLE = PIESLICE, it’s render as CHORD style.
Where could I insert or modify this parameter?</description>
		<content:encoded><![CDATA[<p>I have a problem with ARC STYLE = PIESLICE, it’s render as CHORD style.<br />
Where could I insert or modify this parameter?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ted Roper</title>
		<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-119027</link>
		<pubDate>Fri, 05 Oct 2007 21:45:22 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-119027</guid>
					<description>Printing problem is not solved!!

When you create an image using CANVAS it shows perfect in the screen and in the print preview, but when you print (both in PS and PCL printers it prints very small (about 100 px for an image of 600px-600px) and with incorrect colors.

Is there a way to print canvas objects correctly?
tks,
ted</description>
		<content:encoded><![CDATA[<p>Printing problem is not solved!!</p>
<p>When you create an image using CANVAS it shows perfect in the screen and in the print preview, but when you print (both in PS and PCL printers it prints very small (about 100 px for an image of 600px-600px) and with incorrect colors.</p>
<p>Is there a way to print canvas objects correctly?<br />
tks,<br />
ted
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: victorbos</title>
		<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-117387</link>
		<pubDate>Mon, 01 Oct 2007 16:31:27 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-117387</guid>
					<description>Stumbled across your neat solution. Looks like it is just what I need. Thanks a bunch.

BTW: Someone asked way back if there is a way to make the drawings appear automatically. The following works for me.

“window.onload = function() 
  { ieCanvasInit(); setTimeout('draw()',500); }”

As I am new to this canvas (and iecanvas) is there a list of methods you've implemented, e.g., createLinearGradient(...) and createRadialGradient(...)?</description>
		<content:encoded><![CDATA[<p>Stumbled across your neat solution. Looks like it is just what I need. Thanks a bunch.</p>
<p>BTW: Someone asked way back if there is a way to make the drawings appear automatically. The following works for me.</p>
<p>“window.onload = function()<br />
  { ieCanvasInit(); setTimeout(&#8217;draw()&#8217;,500); }”</p>
<p>As I am new to this canvas (and iecanvas) is there a list of methods you&#8217;ve implemented, e.g., createLinearGradient(&#8230;) and createRadialGradient(&#8230;)?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Reflection Image Effect Script &#187; article &#187; kaizeku ban</title>
		<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-115352</link>
		<pubDate>Wed, 26 Sep 2007 01:36:36 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-115352</guid>
					<description>[...] Canvas in IE (VML)  by Emil Eklund [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Canvas in IE (VML)  by Emil Eklund [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Emil</title>
		<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-88005</link>
		<pubDate>Sat, 23 Jun 2007 19:28:32 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-88005</guid>
					<description>David: &quot;Calling fill() or stroke() causes the current path to be used. To be filled or stroked again, the path must be recreated.&quot;, see http://developer.mozilla.org/en/docs/Drawing_Graphics_with_Canvas

Also, IECanvas is no longer maintained, it has been merged with, and superseded by, ExplorerCanvas, see http://me.eae.net/archive/2006/03/28/explorercanvas/</description>
		<content:encoded><![CDATA[<p>David: &#8220;Calling fill() or stroke() causes the current path to be used. To be filled or stroked again, the path must be recreated.&#8221;, see <a href='http://developer.mozilla.org/en/docs/Drawing_Graphics_with_Canvas' rel='nofollow'>http://developer.mozilla.org/en/docs/Drawing_Graphics_with_Canvas</a></p>
<p>Also, IECanvas is no longer maintained, it has been merged with, and superseded by, ExplorerCanvas, see <a href='http://me.eae.net/archive/2006/03/28/explorercanvas/' rel='nofollow'>http://me.eae.net/archive/2006/03/28/explorercanvas/</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David</title>
		<link>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-84119</link>
		<pubDate>Thu, 14 Jun 2007 00:17:15 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/12/29/canvas-in-ie/#comment-84119</guid>
					<description>Thank you for this fantastic work!

I've come across a bug and was hoping someone could point me in the right direction. It seems that IE won't render both a strokeStyle AND fillStyle when using the lineTo function. 

Example:

var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');

ctx.fillStyle = 'yellow';
ctx.strokeStyle = 'red';
ctx.beginPath();
ctx.lineWidth = 1;
ctx.moveTo(1,1);
ctx.lineTo(80,80);
ctx.lineTo(100,20);
ctx.closePath();
ctx.stroke();
ctx.fill();

Only the stroke() function works. However, if I switch the order of the stroke() and fill() functions, then only fill() works. Any insight? 

Thanks!</description>
		<content:encoded><![CDATA[<p>Thank you for this fantastic work!</p>
<p>I&#8217;ve come across a bug and was hoping someone could point me in the right direction. It seems that IE won&#8217;t render both a strokeStyle AND fillStyle when using the lineTo function. </p>
<p>Example:</p>
<p>var canvas = document.getElementById(&#8217;canvas&#8217;);<br />
var ctx = canvas.getContext(&#8217;2d&#8217;);</p>
<p>ctx.fillStyle = &#8216;yellow&#8217;;<br />
ctx.strokeStyle = &#8216;red&#8217;;<br />
ctx.beginPath();<br />
ctx.lineWidth = 1;<br />
ctx.moveTo(1,1);<br />
ctx.lineTo(80,80);<br />
ctx.lineTo(100,20);<br />
ctx.closePath();<br />
ctx.stroke();<br />
ctx.fill();</p>
<p>Only the stroke() function works. However, if I switch the order of the stroke() and fill() functions, then only fill() works. Any insight? </p>
<p>Thanks!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
