<?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>zerokernel.com &#187; flex-webcam</title>
	<atom:link href="http://zerokernel.com/blog/index.php/tag/flex-webcam/feed/" rel="self" type="application/rss+xml" />
	<link>http://zerokernel.com/blog</link>
	<description>everything you don't need to know (but you are asking anyway)</description>
	<lastBuildDate>Sat, 20 Feb 2010 20:19:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Degrafa + Webcam = FlexPop</title>
		<link>http://zerokernel.com/blog/index.php/2009/03/31/degrafa-webcam-flexpop/</link>
		<comments>http://zerokernel.com/blog/index.php/2009/03/31/degrafa-webcam-flexpop/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 03:34:45 +0000</pubDate>
		<dc:creator>Polo Ornelas</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[degrafa]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[flex-webcam]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://zerokernel.com/blog/?p=89</guid>
		<description><![CDATA[I was trying to learn the powerful Degrafa extension in flex, so I decided to make some tests, and I want to share it with all of you, its far from perfect, and its only a minor example of what degrafa can do, but I really like it.
The purpose of this project is to make [...]


Related posts:<ol><li><a href='http://zerokernel.com/blog/index.php/2009/05/21/flexpop-now-in-air/' rel='bookmark' title='Permanent Link: FlexPop Now in Air !!'>FlexPop Now in Air !!</a> <small>A few months ago I put an example of the...</small></li><li><a href='http://zerokernel.com/blog/index.php/2009/05/25/youtube-and-flex-3/' rel='bookmark' title='Permanent Link: Youtube and Flex 3'>Youtube and Flex 3</a> <small>A time ago google released an SWF/API to interact with...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I was trying to learn the powerful Degrafa extension in flex, so I decided to make some tests, and I want to share it with all of you, its far from perfect, and its only a minor example of what degrafa can do, but I really like it.</p>
<p>The purpose of this project is to make a 4 squared pop-art like image, based from the input of the webcam, just like the apple photo booth has.</p>
<p>I seems like a basic task at the beginning, because making a surface with the squares above an image was going to be easy.</p>
<p>The problem begun with the web cam, I only have one web cam, so for an hour or so, I assume the method Camera.getCamera, will return me the reference to the only web cam I had&#8230; big surprise, this wasn&#8217;t true, appears like the operating system has virtual cameras (I suspect why), but these cameras are first, so I decided to put a list  and let the user decide which camera he wants to process.</p>
<p>Another tricky one, was that first I tried to put a canvas above the VideoDisplay, another big surprise, you can&#8217;t do that, the video display likes to be on top.</p>
<p>This las item keep me thinking about how to mix the input of the camera and blend it to the degrafasurface&#8230; I really hope that someone with better skills can tell me a better way, but the solution I found was to use a bitmap fill and copy the bitmap of the videodisplay. Might not be memory efficient, but is not resource hogging.</p>
<p>So, I let you the link to the app:<br />
<a href="http://www.zerokernel.com/degrafa-test/">http://www.zerokernel.com/degrafa-test/</a></p>
<p>And the link to the code:<br />
<a href="http://www.zerokernel.com/degrafa-test/DegrafaExample.zip">http://www.zerokernel.com/degrafa-test/DegrafaExample.zip</a><br />
(the code is released as is, I&#8217;m not responsible if it breaks your computer or your big plasma screen, just be fair and don&#8217;t link it directly, give me some credit)</p>
<p>please post your comments and ideas, its the only way we can learn <img src='http://zerokernel.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://zerokernel.com/blog/index.php/2009/05/21/flexpop-now-in-air/' rel='bookmark' title='Permanent Link: FlexPop Now in Air !!'>FlexPop Now in Air !!</a> <small>A few months ago I put an example of the...</small></li><li><a href='http://zerokernel.com/blog/index.php/2009/05/25/youtube-and-flex-3/' rel='bookmark' title='Permanent Link: Youtube and Flex 3'>Youtube and Flex 3</a> <small>A time ago google released an SWF/API to interact with...</small></li></ol></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://zerokernel.com/blog/index.php/2009/03/31/degrafa-webcam-flexpop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
