<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PRAVINRANJAN&#039;s Blog &#187; image</title>
	<atom:link href="http://pranjan.com/?feed=rss2&#038;tag=image" rel="self" type="application/rss+xml" />
	<link>http://pranjan.com</link>
	<description>About flash</description>
	<lastBuildDate>Tue, 15 Jun 2010 10:17:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Bitmapdata larger than 2880 pixel</title>
		<link>http://pranjan.com/?p=11</link>
		<comments>http://pranjan.com/?p=11#comments</comments>
		<pubDate>Fri, 30 May 2008 05:19:04 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[Flash AS3]]></category>
		<category><![CDATA[2880]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[bitmapdata]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[dispose]]></category>
		<category><![CDATA[draw]]></category>
		<category><![CDATA[floodfill]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[pixel]]></category>

		<guid isPermaLink="false">http://flas3.wordpress.com/?p=7</guid>
		<description><![CDATA[The width and height parameters specify the size of the bitmap; the maximum value of both is 2880 pixels. Then how to create bitmapdata larger than the maximum specified size? There are some tricks to snap a bitmap greater than 2880 pixels. One of the trick is this&#8230; 1. Load an empty white or black [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The width and height parameters specify the size of the bitmap; the maximum value of both is<span style="color:#0000ff;"> 2880</span> pixels. Then how to create bitmapdata larger than the maximum specified size?</p>
<p>There are some tricks to snap a bitmap greater than 2880 pixels. One of the trick is this&#8230;</p>
<p>1. Load an empty white or black image of desired pixel size [say it would be around 3000x3000 pixels]</p>
<p>2. Clone its bitmapdata.</p>
<p><strong><span style="color:#666699;">var bmpDtaClone:BitmapData = bmp.bitmapData.clone();</span></strong></p>
<p>3. Now you free to draw anything on this bitmap data and flash would have no objection on it.</p>
<p><strong><span style="color:#333399;">bmp.floodFill(0, 0, 0xFFFFFFFF);</span></strong><br />
<strong><span style="color:#666699;">bmpDtaClone</span><span style="color:#333399;">.draw(this, this.transform.matrix, null, null, null, true);</span></strong></p>
<p><span style="color:#ff0000;">Caution: Dont forget to dispose the bitmapdata as bitmapdata does not dispose itself. It could choke the memory tunnels.</span></p>
<p><span style="color:#000000;">Try this!<br />
</span></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=11</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
