<?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>bitmapdata &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/bitmapdata/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Sun, 20 Jun 2010 08:53:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>bitmapdata &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Adobe Image Foundation</title>
		<link>https://blog.sephiroth.it/2007/10/08/adobe-image-foundation/</link>
					<comments>https://blog.sephiroth.it/2007/10/08/adobe-image-foundation/#respond</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Tue, 09 Oct 2007 05:13:03 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Adobe Image Foundation]]></category>
		<category><![CDATA[aif]]></category>
		<category><![CDATA[bitmapdata]]></category>
		<category><![CDATA[flash 10]]></category>
		<category><![CDATA[hydra]]></category>
		<category><![CDATA[imageprocessing]]></category>
		<category><![CDATA[pixelbender]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=233</guid>

					<description><![CDATA[Everyone already knows about the new Flash player 10 (Astro) features that adobe presented at MAX, and above all the new image processing language (Hydra) that it will support in the future. Today I finally found a couple of hours to play with AIF, even if no more because of my limitations knowledge of image &#8230; <a href="https://blog.sephiroth.it/2007/10/08/adobe-image-foundation/" class="more-link">Continue reading <span class="screen-reader-text">Adobe Image Foundation</span></a>]]></description>
										<content:encoded><![CDATA[<p>Everyone already knows about the new <a href="http://labs.adobe.com/wiki/index.php/Astro" target="_blank">Flash player 10 (Astro)</a> features that adobe presented at MAX, and above all the new <a href="http://labs.adobe.com/wiki/index.php/AIF_Toolkit" target="_blank">image processing language (Hydra)</a> that it will support in the future.</p>
<p>Today I finally found a couple of hours to play with AIF, even if no more because of my limitations knowledge of image processing algorithms 🙂<br />
In fact I was able to broke different times my video card driver (with a panic black screen)!</p>
<p>Anyway after all I did just a couple of experiments trying to convert a couple of scripts I already did using the old flash 9 bitmapdata filters..</p>
<p><img fetchpriority="high" decoding="async" class="size-full wp-image-1051 alignnone" style="margin: 4px;" title="aif_filter_snn_2" src="https://blog.sephiroth.it/wp-content/uploads/2007/10/aif_filter_snn_2.png" alt="" width="300" height="201" /><br />
<code>kernel Snn<br />
{<br />
parameter float size<br />
< minValue: 0.0;
maxValue: 8.0;
defaultValue: 2.0;
>;<br />
parameter int step<br />
< minValue: 1;
maxValue: 10;
defaultValue: 1;
>;<br />
void evaluatePixel(in image4 src, out pixel4 result)<br />
{<br />
pixel2 coord = outCoord();<br />
pixel4 valueC = sampleLinear(src, coord);<br />
float theStep = float(step);<br />
float2 point = float2(0.0,0.0);<br />
float x = 0.0;<br />
float y = 0.0;<br />
float count = 0.0;<br />
pixel4 sum = pixel4(0.0, 0.0, 0.0, 0.0);<br />
pixel4 valueA;<br />
pixel4 valueB;<br />
for( x = - size; x &lt; size; x+= theStep)<br />
{<br />
for(y = -size; y &lt; size; y+= theStep)<br />
{<br />
valueA = sampleLinear(src, pixel2(coord.x + x, coord.y + y));<br />
valueB = sampleLinear(src, pixel2(coord.x - x, coord.y - y));<br />
if ( any(lessThan(abs(valueC - valueA), abs(valueC - valueB))))<br />
{<br />
sum = sum + valueA;<br />
} else {<br />
sum = sum + valueB;<br />
}<br />
count = count + 1.0;<br />
}<br />
}<br />
result = sum/count;<br />
}<br />
}</code><br />
<a href="https://blog.sephiroth.it/wp-content/uploads/2007/10/aif_filter_websafe_1.png"><img decoding="async" class="alignnone size-full wp-image-1053" title="aif_filter_websafe_1" src="https://blog.sephiroth.it/wp-content/uploads/2007/10/aif_filter_websafe_1.png" alt="" width="300" height="200" /></a><br />
<code>kernel Websafe<br />
{<br />
parameter float value<br />
< minValue: 0.0;
maxValue: 500.0;
defaultValue: 10.0;
>;<br />
void evaluatePixel( in image4 src, out pixel4 result)<br />
{<br />
result = sampleLinear(src, outCoord());<br />
result = (floor((result*255.0)/51.0) * 51.0)/255.0;<br />
}<br />
}</code><br />
As you can see it&#8217;s nothing new, they&#8217;re just my first steps in this new language.. don&#8217;t spend much time on these example, look at the coolest examples shown in the <a title="hydra gallery" href="http://labs.adobe.com/wiki/index.php/AIF_Toolkit:Gallery" target="_blank">Hydra gallery</a> instead!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2007/10/08/adobe-image-foundation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Bug in BitmapData ?</title>
		<link>https://blog.sephiroth.it/2007/05/18/bug-in-bitmapdata/</link>
					<comments>https://blog.sephiroth.it/2007/05/18/bug-in-bitmapdata/#respond</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Fri, 18 May 2007 18:21:34 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[bitmapdata]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[getpixel32]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=218</guid>

					<description><![CDATA[<p>What happens using getPixel32 with 0x00FFFFFF ?<br /><br /> Read more here: <a target="_blank" href="http://aprogrammerdiary.com/2007/05/bug_in_bitmapdata.html ">http://aprogrammerdiary.com/../bug_in_bitmapdata.html</a></p>
]]></description>
										<content:encoded><![CDATA[<p>What happens using BitmapData <span style="font-weight: bold;">getPixel32</span> with 0x00FFFFFF ?</p>
<p>Read the full post: <a href="http://aprogrammerdiary.com/2007/05/bug_in_bitmapdata.html " target="_blank">http://aprogrammerdiary.com/../bug_in_bitmapdata.html</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2007/05/18/bug-in-bitmapdata/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
