<?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 for Kun Janos around Adobe’s &lt;Flex&gt; and &lt;Flash&gt;</title>
	<atom:link href="http://kun-janos.ro/blog/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://kun-janos.ro/blog</link>
	<description>about me, my life and my work</description>
	<pubDate>Sun, 05 Sep 2010 05:18:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Micronets is closed&#8230; by Cornel Creanga</title>
		<link>http://kun-janos.ro/blog/?p=163&cpage=1#comment-134</link>
		<dc:creator>Cornel Creanga</dc:creator>
		<pubDate>Tue, 18 May 2010 08:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://kun-janos.ro/blog/?p=163#comment-134</guid>
		<description>Sorry to hear about that. On the other hand, you never know when bad turns to good. Good luck on your journey.</description>
		<content:encoded><![CDATA[<p>Sorry to hear about that. On the other hand, you never know when bad turns to good. Good luck on your journey.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My first experience with ebay and PayPal by marius</title>
		<link>http://kun-janos.ro/blog/?p=165&cpage=1#comment-132</link>
		<dc:creator>marius</dc:creator>
		<pubDate>Sun, 28 Mar 2010 21:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://kun-janos.ro/blog/?p=165#comment-132</guid>
		<description>sunt in aceiasi situatie cu tine. tocmai mi a disparut produsul ebay din contul paypal. nu stiu daca are legatura cu faptul ca le am trimis un mail prin care ii intrebam de ce nu pot plati produsul respectiv...am reusit sa platesc 2 produse sub 50$, in China, dar Paypal nu imi accepta la plata un produs de 325 $ din Anglia. Cum spuneam l au si sters din contul de pe Paypal. Nu pot sa spun cat ma enerveaza sistemul asta de doi lei in care nu poti lua legatura decat prin mail, atunci cand ai nevoie de o rezolvare rapida.
nu stiu cum ar trebui sa procedez pentru a plati si primi produsul in cauza.</description>
		<content:encoded><![CDATA[<p>sunt in aceiasi situatie cu tine. tocmai mi a disparut produsul ebay din contul paypal. nu stiu daca are legatura cu faptul ca le am trimis un mail prin care ii intrebam de ce nu pot plati produsul respectiv&#8230;am reusit sa platesc 2 produse sub 50$, in China, dar Paypal nu imi accepta la plata un produs de 325 $ din Anglia. Cum spuneam l au si sters din contul de pe Paypal. Nu pot sa spun cat ma enerveaza sistemul asta de doi lei in care nu poti lua legatura decat prin mail, atunci cand ai nevoie de o rezolvare rapida.<br />
nu stiu cum ar trebui sa procedez pentru a plati si primi produsul in cauza.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Micronets is closed&#8230; by admin</title>
		<link>http://kun-janos.ro/blog/?p=163&cpage=1#comment-97</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 02 Feb 2010 16:02:25 +0000</pubDate>
		<guid isPermaLink="false">http://kun-janos.ro/blog/?p=163#comment-97</guid>
		<description>Thanks Sateesh, couldn't do it without your help :)</description>
		<content:encoded><![CDATA[<p>Thanks Sateesh, couldn&#8217;t do it without your help <img src='http://kun-janos.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Micronets is closed&#8230; by Sateesh Karanam</title>
		<link>http://kun-janos.ro/blog/?p=163&cpage=1#comment-96</link>
		<dc:creator>Sateesh Karanam</dc:creator>
		<pubDate>Tue, 02 Feb 2010 15:46:50 +0000</pubDate>
		<guid isPermaLink="false">http://kun-janos.ro/blog/?p=163#comment-96</guid>
		<description>It was fantastic working with you Janos on some great Flex stuff. Great turnaround for every task that you had on hand and always a pleasure to work with</description>
		<content:encoded><![CDATA[<p>It was fantastic working with you Janos on some great Flex stuff. Great turnaround for every task that you had on hand and always a pleasure to work with</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flex Image Resize Produces Poor Quality Images by nikola</title>
		<link>http://kun-janos.ro/blog/?p=107&cpage=1#comment-75</link>
		<dc:creator>nikola</dc:creator>
		<pubDate>Mon, 21 Sep 2009 19:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://kun-janos.ro/blog/?p=107#comment-75</guid>
		<description>Thanks for this source code! I was looking for a Flex component which would support bi cubic interpolation while scaling the original image. Based on your source code I managed to make a new component which supports this. Here's the source code:

&lt;code&gt;
package custom_components
{

    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.IBitmapDrawable;
    import flash.display.LoaderInfo;
    import flash.display.MovieClip;
    import flash.display.PixelSnapping;
    import flash.events.Event;
    import flash.filters.*;
    import flash.geom.Matrix;
    import flash.geom.Point;
    import flash.geom.Rectangle;
    
    import mx.controls.Image;
    import mx.core.UIComponent;
    import mx.core.mx_internal;

    use namespace mx_internal;
    
    public class SmoothImage extends Image {
        
        public function SmoothImage():void {
            super(); 
        }

        override mx_internal function contentLoaderInfo_completeEventHandler(evObj:Event):void {
        	
        	var currTarget:LoaderInfo = evObj.currentTarget as LoaderInfo;

			// create a copy of original bitmap
			var originalImage:BitmapData = new BitmapData(currTarget.width, currTarget.height);
			originalImage.draw(evObj.target.loader as IBitmapDrawable);
			
			// blur values are arbitrary - for me 7 worked fine - you can experiment with these 
			var blurXValue:Number = 7;
			var blurYValue:Number = 7;

			// setting up the blur filter
			var blurFilter:BlurFilter = new BlurFilter(blurXValue, blurYValue, int(BitmapFilterQuality.LOW));
	
			// applying the blur filter to the copy of the original image
			originalImage.applyFilter(originalImage,
			                          new Rectangle(0, 0, originalImage.width, originalImage.height),
			                          new Point(0, 0),
			                          blurFilter);

			// resizing the original image
			var rbd:BitmapData = resizeImageBD(originalImage, this.width, this.height);
			
			// assigining the resized version of the image to the Image component
			this.source = new Bitmap(rbd, PixelSnapping.AUTO, true);
            
            super.contentLoaderInfo_completeEventHandler(evObj);
        }
        
		public static function resizeImageBD( bitmapData:BitmapData, width:Number, height:Number ):BitmapData {
			var newBitmapData:BitmapData	= new BitmapData( width, height, true, 0x000000 );
			var matrix:Matrix				= new Matrix();
			matrix.identity();
			matrix.createBox( width / bitmapData.width, height / bitmapData.height );
			newBitmapData.draw( bitmapData, matrix, null, null, null, true );
			return newBitmapData;
		}
    }
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for this source code! I was looking for a Flex component which would support bi cubic interpolation while scaling the original image. Based on your source code I managed to make a new component which supports this. Here&#8217;s the source code:</p>
<p><code><br />
package custom_components<br />
{</p>
<p>    import flash.display.Bitmap;<br />
    import flash.display.BitmapData;<br />
    import flash.display.IBitmapDrawable;<br />
    import flash.display.LoaderInfo;<br />
    import flash.display.MovieClip;<br />
    import flash.display.PixelSnapping;<br />
    import flash.events.Event;<br />
    import flash.filters.*;<br />
    import flash.geom.Matrix;<br />
    import flash.geom.Point;<br />
    import flash.geom.Rectangle;</p>
<p>    import mx.controls.Image;<br />
    import mx.core.UIComponent;<br />
    import mx.core.mx_internal;</p>
<p>    use namespace mx_internal;</p>
<p>    public class SmoothImage extends Image {</p>
<p>        public function SmoothImage():void {<br />
            super();<br />
        }</p>
<p>        override mx_internal function contentLoaderInfo_completeEventHandler(evObj:Event):void {</p>
<p>        	var currTarget:LoaderInfo = evObj.currentTarget as LoaderInfo;</p>
<p>			// create a copy of original bitmap<br />
			var originalImage:BitmapData = new BitmapData(currTarget.width, currTarget.height);<br />
			originalImage.draw(evObj.target.loader as IBitmapDrawable);</p>
<p>			// blur values are arbitrary - for me 7 worked fine - you can experiment with these<br />
			var blurXValue:Number = 7;<br />
			var blurYValue:Number = 7;</p>
<p>			// setting up the blur filter<br />
			var blurFilter:BlurFilter = new BlurFilter(blurXValue, blurYValue, int(BitmapFilterQuality.LOW));</p>
<p>			// applying the blur filter to the copy of the original image<br />
			originalImage.applyFilter(originalImage,<br />
			                          new Rectangle(0, 0, originalImage.width, originalImage.height),<br />
			                          new Point(0, 0),<br />
			                          blurFilter);</p>
<p>			// resizing the original image<br />
			var rbd:BitmapData = resizeImageBD(originalImage, this.width, this.height);</p>
<p>			// assigining the resized version of the image to the Image component<br />
			this.source = new Bitmap(rbd, PixelSnapping.AUTO, true);</p>
<p>            super.contentLoaderInfo_completeEventHandler(evObj);<br />
        }</p>
<p>		public static function resizeImageBD( bitmapData:BitmapData, width:Number, height:Number ):BitmapData {<br />
			var newBitmapData:BitmapData	= new BitmapData( width, height, true, 0x000000 );<br />
			var matrix:Matrix				= new Matrix();<br />
			matrix.identity();<br />
			matrix.createBox( width / bitmapData.width, height / bitmapData.height );<br />
			newBitmapData.draw( bitmapData, matrix, null, null, null, true );<br />
			return newBitmapData;<br />
		}<br />
    }<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flex Image Resize Produces Poor Quality Images by datafunk</title>
		<link>http://kun-janos.ro/blog/?p=107&cpage=1#comment-71</link>
		<dc:creator>datafunk</dc:creator>
		<pubDate>Sat, 12 Sep 2009 16:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://kun-janos.ro/blog/?p=107#comment-71</guid>
		<description>Hi Janos,

Thanks for the post, in my search to high-quality resizing with flex/air, it was very helpfull. But I also found this way to resample bitmap data.
&lt;a href="http://www.envrac.org/index.php/2008/06/23/181-reduction-de-bitmapdata-smoothing-pourquoi-c-est-pas-beau-et-comment-ameliorer" rel="nofollow"&gt;envrac.org&lt;/a&gt;

Greetz,</description>
		<content:encoded><![CDATA[<p>Hi Janos,</p>
<p>Thanks for the post, in my search to high-quality resizing with flex/air, it was very helpfull. But I also found this way to resample bitmap data.<br />
<a href="http://www.envrac.org/index.php/2008/06/23/181-reduction-de-bitmapdata-smoothing-pourquoi-c-est-pas-beau-et-comment-ameliorer" rel="nofollow">envrac.org</a></p>
<p>Greetz,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
