<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: BitmapData.draw x Graphics.beginBitmapFill</title>
	<atom:link href="http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/</link>
	<description>Yet another labs blog</description>
	<lastBuildDate>Wed, 14 Dec 2011 16:27:23 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Online and Downloadable financial Risk Server</title>
		<link>http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/comment-page-1/#comment-1004</link>
		<dc:creator>Online and Downloadable financial Risk Server</dc:creator>
		<pubDate>Tue, 10 Jun 2008 07:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/#comment-1004</guid>
		<description>Pull out...</description>
		<content:encoded><![CDATA[<p>Pull out&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/comment-page-1/#comment-987</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Thu, 03 Apr 2008 01:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/#comment-987</guid>
		<description>Cool!! Just figured it out... Is always (maybe not) simpler than one might think...

change the line:
var bitmapData:BitmapData = new BitmapData(t.width/1, t.height/1, false );

To:
var bitmapData:BitmapData = new BitmapData(t.width/1, t.height/1, true, 0x00000000 );

0x000000 is just 0 alpha black. It could be any color...

Thanks...</description>
		<content:encoded><![CDATA[<p>Cool!! Just figured it out&#8230; Is always (maybe not) simpler than one might think&#8230;</p>
<p>change the line:<br />
var bitmapData:BitmapData = new BitmapData(t.width/1, t.height/1, false );</p>
<p>To:<br />
var bitmapData:BitmapData = new BitmapData(t.width/1, t.height/1, true, 0&#215;00000000 );</p>
<p>0&#215;000000 is just 0 alpha black. It could be any color&#8230;</p>
<p>Thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/comment-page-1/#comment-986</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Thu, 03 Apr 2008 01:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/#comment-986</guid>
		<description>Nice!! You seem very familiar with the TextField class and it&#039;s properties. 

I was trying to copy my TextField to a BitmapData and I get a box around the text. Any idea how to work around this? I tried messing with the AntiAliasType, GridFitType, and other properties but nothing worked. I also tried placing the TF inside an MC with no success.

Here&#039;s some code to consider. You can simply run this in the Flash IDE:

var t:TextField = new TextField();
t.text = &quot;JOHN MAC&quot;;
t.antiAliasType = flash.text.AntiAliasType.ADVANCED;
t.gridFitType = flash.text.GridFitType.SUBPIXEL;
t.autoSize = TextFieldAutoSize.LEFT;
t.background = false;
t.cacheAsBitmap = true;

t.textColor = 0x000000;

var mctf:MovieClip = new MovieClip();
var mctf02:MovieClip = new MovieClip();
mctf02.addChild(t);
var bitmapData:BitmapData = new BitmapData(t.width/1, t.height/1, false );
var bitmap:Bitmap = new Bitmap(bitmapData);
var scaleMatrix:Matrix = new Matrix();
scaleMatrix.scale(1, 1);
bitmapData.draw(mctf02, scaleMatrix);

mctf.addChild(bitmap);
addChild(mctf);

Any help/link is greatly appreciated</description>
		<content:encoded><![CDATA[<p>Nice!! You seem very familiar with the TextField class and it&#8217;s properties. </p>
<p>I was trying to copy my TextField to a BitmapData and I get a box around the text. Any idea how to work around this? I tried messing with the AntiAliasType, GridFitType, and other properties but nothing worked. I also tried placing the TF inside an MC with no success.</p>
<p>Here&#8217;s some code to consider. You can simply run this in the Flash IDE:</p>
<p>var t:TextField = new TextField();<br />
t.text = &#8220;JOHN MAC&#8221;;<br />
t.antiAliasType = flash.text.AntiAliasType.ADVANCED;<br />
t.gridFitType = flash.text.GridFitType.SUBPIXEL;<br />
t.autoSize = TextFieldAutoSize.LEFT;<br />
t.background = false;<br />
t.cacheAsBitmap = true;</p>
<p>t.textColor = 0&#215;000000;</p>
<p>var mctf:MovieClip = new MovieClip();<br />
var mctf02:MovieClip = new MovieClip();<br />
mctf02.addChild(t);<br />
var bitmapData:BitmapData = new BitmapData(t.width/1, t.height/1, false );<br />
var bitmap:Bitmap = new Bitmap(bitmapData);<br />
var scaleMatrix:Matrix = new Matrix();<br />
scaleMatrix.scale(1, 1);<br />
bitmapData.draw(mctf02, scaleMatrix);</p>
<p>mctf.addChild(bitmap);<br />
addChild(mctf);</p>
<p>Any help/link is greatly appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeroen</title>
		<link>http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/comment-page-1/#comment-960</link>
		<dc:creator>Jeroen</dc:creator>
		<pubDate>Wed, 23 Jan 2008 18:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/#comment-960</guid>
		<description>If I try to use the bitmapdata.draw(video) function, I keep getting security errors since flashplayer 9,0,115,0.
Are you using the graphics.beginBitmapFill on the recyou.jp site?</description>
		<content:encoded><![CDATA[<p>If I try to use the bitmapdata.draw(video) function, I keep getting security errors since flashplayer 9,0,115,0.<br />
Are you using the graphics.beginBitmapFill on the recyou.jp site?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/comment-page-1/#comment-956</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 14 Jan 2008 22:40:21 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/#comment-956</guid>
		<description>Hey really cool stuff,
In my benchmarking though commands through the graphics class have a bigger impact on frame rate, for example drawing 10k bitmaps via beginBitmapFill may be accomplished in 23ms but you&#039;re only going to take a much bigger hit to your framerate, than if you had only a single bitmap.

I can draw 4096 4x4 sprites to a bitmap and maintain 64fps. But doing the same thing via fill and clear drops to 22fps. Even though the later had a faster drawing routine.

I&#039;m eager to see if further testing gets you the same result.
James</description>
		<content:encoded><![CDATA[<p>Hey really cool stuff,<br />
In my benchmarking though commands through the graphics class have a bigger impact on frame rate, for example drawing 10k bitmaps via beginBitmapFill may be accomplished in 23ms but you&#8217;re only going to take a much bigger hit to your framerate, than if you had only a single bitmap.</p>
<p>I can draw 4096 4&#215;4 sprites to a bitmap and maintain 64fps. But doing the same thing via fill and clear drops to 22fps. Even though the later had a faster drawing routine.</p>
<p>I&#8217;m eager to see if further testing gets you the same result.<br />
James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dries</title>
		<link>http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/comment-page-1/#comment-19</link>
		<dc:creator>dries</dc:creator>
		<pubDate>Wed, 14 Nov 2007 11:16:16 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/11/08/bitmapdatadraw-x-graphicsbeginbitmapfill/#comment-19</guid>
		<description>Ignore the idiot commenting on your english its a retard:P
Great work and great blog!</description>
		<content:encoded><![CDATA[<p>Ignore the idiot commenting on your english its a retard:P<br />
Great work and great blog!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

