<?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 Feedback</title>
	<link>http://me.eae.net/archive/2006/01/07/canvas-in-ie-feedback/</link>
	<description>The journal of Emil A Eklund</description>
	<pubDate>Sun, 11 May 2008 23:58:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>

	<item>
		<title>by: EI</title>
		<link>http://me.eae.net/archive/2006/01/07/canvas-in-ie-feedback/#comment-56482</link>
		<pubDate>Sun, 18 Mar 2007 15:06:21 +0000</pubDate>
		<guid>http://me.eae.net/archive/2006/01/07/canvas-in-ie-feedback/#comment-56482</guid>
					<description>translate don't work on this :-(



  
    Canvas demo
		
    
		window.onload = function() { ieCanvasInit(&quot;iecanvas.htc&quot;); }

function drawBowtie(ctx, fillStyle) {
 
   ctx.globalAlpha = 0.3;
   ctx.fillStyle = &quot;rgb(200,200,200)&quot;;
   ctx.fillRect(-30, -30, 60, 60);
 
   ctx.fillStyle = fillStyle;
   ctx.globalAlpha = 1.0;
   ctx.beginPath();
   ctx.moveTo(25, 25);
   ctx.lineTo(-25, -25);
   ctx.lineTo(25, -25);
   ctx.lineTo(-25, 25);
   ctx.closePath();
   ctx.fill();
 }
 
 function dot(ctx) {
   ctx.save();
   ctx.fillStyle = &quot;black&quot;;
   ctx.fillRect(-2, -2, 4, 4);
   ctx.restore();
 }
 
      function draw () {
var canvas = document.getElementById(&quot;canvas&quot;);
   var ctx = canvas.getContext(&quot;2d&quot;);

   // note that all other translates are relative to this
   // one
   ctx.translate(45, 45);

   ctx.save();
   //ctx.translate(0, 0); // unnecessary
   drawBowtie(ctx, &quot;red&quot;);
   dot(ctx);
   ctx.restore();
 
   ctx.save();
   ctx.translate(85, 0);
   ctx.rotate(45 * Math.PI / 180);
   drawBowtie(ctx, &quot;green&quot;);
   dot(ctx);
   ctx.restore();
 
   ctx.save();
   ctx.translate(0, 85);
   ctx.rotate(135 * Math.PI / 180);
   drawBowtie(ctx, &quot;blue&quot;);
   dot(ctx);
   ctx.restore();
 
   ctx.save();
   ctx.translate(85, 85);
   ctx.rotate(90 * Math.PI / 180);
   drawBowtie(ctx, &quot;yellow&quot;);
   dot(ctx);
   ctx.restore();
          }
    
  
  

		draw
  
</description>
		<content:encoded><![CDATA[<p>translate don&#8217;t work on this <img src='http://me.eae.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>    Canvas demo</p>
<p>		window.onload = function() { ieCanvasInit(&#8221;iecanvas.htc&#8221;); }</p>
<p>function drawBowtie(ctx, fillStyle) {</p>
<p>   ctx.globalAlpha = 0.3;<br />
   ctx.fillStyle = &#8220;rgb(200,200,200)&#8221;;<br />
   ctx.fillRect(-30, -30, 60, 60);</p>
<p>   ctx.fillStyle = fillStyle;<br />
   ctx.globalAlpha = 1.0;<br />
   ctx.beginPath();<br />
   ctx.moveTo(25, 25);<br />
   ctx.lineTo(-25, -25);<br />
   ctx.lineTo(25, -25);<br />
   ctx.lineTo(-25, 25);<br />
   ctx.closePath();<br />
   ctx.fill();<br />
 }</p>
<p> function dot(ctx) {<br />
   ctx.save();<br />
   ctx.fillStyle = &#8220;black&#8221;;<br />
   ctx.fillRect(-2, -2, 4, 4);<br />
   ctx.restore();<br />
 }</p>
<p>      function draw () {<br />
var canvas = document.getElementById(&#8221;canvas&#8221;);<br />
   var ctx = canvas.getContext(&#8221;2d&#8221;);</p>
<p>   // note that all other translates are relative to this<br />
   // one<br />
   ctx.translate(45, 45);</p>
<p>   ctx.save();<br />
   //ctx.translate(0, 0); // unnecessary<br />
   drawBowtie(ctx, &#8220;red&#8221;);<br />
   dot(ctx);<br />
   ctx.restore();</p>
<p>   ctx.save();<br />
   ctx.translate(85, 0);<br />
   ctx.rotate(45 * Math.PI / 180);<br />
   drawBowtie(ctx, &#8220;green&#8221;);<br />
   dot(ctx);<br />
   ctx.restore();</p>
<p>   ctx.save();<br />
   ctx.translate(0, 85);<br />
   ctx.rotate(135 * Math.PI / 180);<br />
   drawBowtie(ctx, &#8220;blue&#8221;);<br />
   dot(ctx);<br />
   ctx.restore();</p>
<p>   ctx.save();<br />
   ctx.translate(85, 85);<br />
   ctx.rotate(90 * Math.PI / 180);<br />
   drawBowtie(ctx, &#8220;yellow&#8221;);<br />
   dot(ctx);<br />
   ctx.restore();<br />
          }</p>
<p>		draw
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ivan</title>
		<link>http://me.eae.net/archive/2006/01/07/canvas-in-ie-feedback/#comment-3278</link>
		<pubDate>Fri, 21 Jul 2006 08:31:14 +0000</pubDate>
		<guid>http://me.eae.net/archive/2006/01/07/canvas-in-ie-feedback/#comment-3278</guid>
					<description>I like your chart, it's simple to use and it looks really nice.
There is only one step to perfection: How to print it from IE? It is not visible in print preview, and it won't print. In Firefox I see chart in print preview, but still nothing on paper. Can anyone help me how to print canvas from browser?</description>
		<content:encoded><![CDATA[<p>I like your chart, it&#8217;s simple to use and it looks really nice.<br />
There is only one step to perfection: How to print it from IE? It is not visible in print preview, and it won&#8217;t print. In Firefox I see chart in print preview, but still nothing on paper. Can anyone help me how to print canvas from browser?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Erik Arvidsson</title>
		<link>http://me.eae.net/archive/2006/01/07/canvas-in-ie-feedback/#comment-407</link>
		<pubDate>Wed, 11 Jan 2006 05:42:01 +0000</pubDate>
		<guid>http://me.eae.net/archive/2006/01/07/canvas-in-ie-feedback/#comment-407</guid>
					<description>If it works then use it.

And today Canvas + IeVmlCanvas works for a lot of things</description>
		<content:encoded><![CDATA[<p>If it works then use it.</p>
<p>And today Canvas + IeVmlCanvas works for a lot of things
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
