<?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"
	>
<channel>
	<title>Comments on: Collage Creator</title>
	<atom:link href="http://www.flashmonkey.co.uk/collagecreator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flashmonkey.co.uk/collagecreator/</link>
	<description>Stephen Burgess - ActionScript Developer</description>
	<pubDate>Sun, 01 Aug 2010 06:55:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: FlashMonkey</title>
		<link>http://www.flashmonkey.co.uk/collagecreator/#comment-1818</link>
		<dc:creator>FlashMonkey</dc:creator>
		<pubDate>Sun, 28 Feb 2010 18:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashmonkey.co.uk/?p=762#comment-1818</guid>
		<description>Hey Kaho, the programming flow goes like this:

1. upload a photo and create a Bitmap square for each pixel, setting the Bitmap's bitmapData to the color of the pixel
2. load a thumbnail from flickr (just one) and get the average color value using the same method as Justin Windle talks about &lt;a href="http://blog.soulwire.co.uk/flash/actionscript-3/extract-average-colours-from-bitmapdata" rel="nofollow"&gt;here&lt;/a&gt;
3. compare that color value with each pixels original color value and give it a score on how close the match is (to the original color). If the score is higher than the score of the current image, replace the Bitmaps bitmapData with the bitmapData of the loaded thumb
4. dispose the loaded thumb
5. repeat steps 2, 3 and 4 until all images from Flickr with the specified tag have been loaded and compared

As I'm only replacing existing bitmapData, and then disposing the loaded thumb, the memory usage should never expand so you can leave it for an hour and it won't (/shouldn't) crash your browser.

I hope that helps explain how it works and thanks for the positive comment.</description>
		<content:encoded><![CDATA[<p>Hey Kaho, the programming flow goes like this:</p>
<p>1. upload a photo and create a Bitmap square for each pixel, setting the Bitmap&#8217;s bitmapData to the color of the pixel<br />
2. load a thumbnail from flickr (just one) and get the average color value using the same method as Justin Windle talks about <a href="http://blog.soulwire.co.uk/flash/actionscript-3/extract-average-colours-from-bitmapdata" rel="nofollow">here</a><br />
3. compare that color value with each pixels original color value and give it a score on how close the match is (to the original color). If the score is higher than the score of the current image, replace the Bitmaps bitmapData with the bitmapData of the loaded thumb<br />
4. dispose the loaded thumb<br />
5. repeat steps 2, 3 and 4 until all images from Flickr with the specified tag have been loaded and compared</p>
<p>As I&#8217;m only replacing existing bitmapData, and then disposing the loaded thumb, the memory usage should never expand so you can leave it for an hour and it won&#8217;t (/shouldn&#8217;t) crash your browser.</p>
<p>I hope that helps explain how it works and thanks for the positive comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaho</title>
		<link>http://www.flashmonkey.co.uk/collagecreator/#comment-1802</link>
		<dc:creator>kaho</dc:creator>
		<pubDate>Wed, 24 Feb 2010 03:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashmonkey.co.uk/?p=762#comment-1802</guid>
		<description>awesome! really impressive. would you tell me more about the programming flow? my understanding is upload a photo first, analyze the uploaded photo's each pixel's color value, but then how do you compare the color from flickr's photo? need to download all photos from flickr to memory first? thanks...really want to know.</description>
		<content:encoded><![CDATA[<p>awesome! really impressive. would you tell me more about the programming flow? my understanding is upload a photo first, analyze the uploaded photo&#8217;s each pixel&#8217;s color value, but then how do you compare the color from flickr&#8217;s photo? need to download all photos from flickr to memory first? thanks&#8230;really want to know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Federico</title>
		<link>http://www.flashmonkey.co.uk/collagecreator/#comment-618</link>
		<dc:creator>Federico</dc:creator>
		<pubDate>Mon, 23 Nov 2009 14:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashmonkey.co.uk/?p=762#comment-618</guid>
		<description>Wow, pretty impressive. We're all going to expect something even more impressive from you now!</description>
		<content:encoded><![CDATA[<p>Wow, pretty impressive. We&#8217;re all going to expect something even more impressive from you now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FlashMonkey</title>
		<link>http://www.flashmonkey.co.uk/collagecreator/#comment-616</link>
		<dc:creator>FlashMonkey</dc:creator>
		<pubDate>Mon, 23 Nov 2009 13:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashmonkey.co.uk/?p=762#comment-616</guid>
		<description>Cheers mate. Basically as long as there are images available with the selected search tag it will just keep going. Memory usage shouldn't increase as the initial image is made up of BitmapData, and all that happens when a successfully match is made is the BitmapData is changed to that of the loaded Flickr thumbnail.

If you right click on the app and select 'Show Profiler' from the menu, a graph will appear showing exactly whats happening with memory usage etc (one thing to note though, if you have other Flash apps open in the same browser their memory usage will also be displayed)

You can grab that profiler from &lt;a href="http://www.lostinactionscript.com/blog/index.php/2008/10/06/as3-swf-profiler/"  target="_blank" rel="nofollow"&gt;here&lt;/a&gt; - very useful tool, I use it on everything I build!</description>
		<content:encoded><![CDATA[<p>Cheers mate. Basically as long as there are images available with the selected search tag it will just keep going. Memory usage shouldn&#8217;t increase as the initial image is made up of BitmapData, and all that happens when a successfully match is made is the BitmapData is changed to that of the loaded Flickr thumbnail.</p>
<p>If you right click on the app and select &#8216;Show Profiler&#8217; from the menu, a graph will appear showing exactly whats happening with memory usage etc (one thing to note though, if you have other Flash apps open in the same browser their memory usage will also be displayed)</p>
<p>You can grab that profiler from <a href="http://www.lostinactionscript.com/blog/index.php/2008/10/06/as3-swf-profiler/"  target="_blank" rel="nofollow">here</a> - very useful tool, I use it on everything I build!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rauri</title>
		<link>http://www.flashmonkey.co.uk/collagecreator/#comment-615</link>
		<dc:creator>rauri</dc:creator>
		<pubDate>Mon, 23 Nov 2009 13:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashmonkey.co.uk/?p=762#comment-615</guid>
		<description>great work...
how does memory versus time look?
does it eventually go "right, this is good enough, let's stop" ?</description>
		<content:encoded><![CDATA[<p>great work&#8230;<br />
how does memory versus time look?<br />
does it eventually go &#8220;right, this is good enough, let&#8217;s stop&#8221; ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
