<?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 on: How to crop with AS3</title> <atom:link href="http://blog.stroep.nl/2009/05/how-to-crop/feed/" rel="self" type="application/rss+xml" /><link>http://blog.stroep.nl/2009/05/how-to-crop/</link> <description>Just a collection of random works - Mark Knol</description> <lastBuildDate>Tue, 07 Sep 2010 13:58:01 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>By: Chris Lawrence</title><link>http://blog.stroep.nl/2009/05/how-to-crop/#comment-17506</link> <dc:creator>Chris Lawrence</dc:creator> <pubDate>Fri, 11 Jun 2010 01:31:31 +0000</pubDate> <guid isPermaLink="false">http://blog.stroep.nl/?p=510#comment-17506</guid> <description>First, let me say that you are a god!
I was struggling with this, and would not have figured it out on my own.Second, let me offer up something useful.
I needed this because of problems with masking, and I needed my cropped image to maintain its transparency.  Substituting this small change into your code will make it preserve any existing transparency:var croppedBitmap:Bitmap = new Bitmap(new BitmapData(_width, _height, true, 0x00000000), PixelSnapping.ALWAYS, true);</description> <content:encoded><![CDATA[<p>First, let me say that you are a god!<br /> I was struggling with this, and would not have figured it out on my own.</p><p>Second, let me offer up something useful.<br /> I needed this because of problems with masking, and I needed my cropped image to maintain its transparency.  Substituting this small change into your code will make it preserve any existing transparency:</p><p>var croppedBitmap:Bitmap = new Bitmap(new BitmapData(_width, _height, true, 0&#215;00000000), PixelSnapping.ALWAYS, true);</p> ]]></content:encoded> </item> <item><title>By: ramel</title><link>http://blog.stroep.nl/2009/05/how-to-crop/#comment-14713</link> <dc:creator>ramel</dc:creator> <pubDate>Tue, 09 Mar 2010 19:27:33 +0000</pubDate> <guid isPermaLink="false">http://blog.stroep.nl/?p=510#comment-14713</guid> <description>Ok got it too a look at the as file.  the displayObject is the first method in the function not the last.  This is a great little script very cool.</description> <content:encoded><![CDATA[<p>Ok got it too a look at the as file.  the displayObject is the first method in the function not the last.  This is a great little script very cool.</p> ]]></content:encoded> </item> <item><title>By: ramel</title><link>http://blog.stroep.nl/2009/05/how-to-crop/#comment-14708</link> <dc:creator>ramel</dc:creator> <pubDate>Tue, 09 Mar 2010 17:51:49 +0000</pubDate> <guid isPermaLink="false">http://blog.stroep.nl/?p=510#comment-14708</guid> <description>Oh add I&#039;m trying to copy a portions of the stage.</description> <content:encoded><![CDATA[<p>Oh add I&#8217;m trying to copy a portions of the stage.</p> ]]></content:encoded> </item> <item><title>By: ramel</title><link>http://blog.stroep.nl/2009/05/how-to-crop/#comment-14707</link> <dc:creator>ramel</dc:creator> <pubDate>Tue, 09 Mar 2010 17:50:49 +0000</pubDate> <guid isPermaLink="false">http://blog.stroep.nl/?p=510#comment-14707</guid> <description>I&#039;m trying to use this class but I am getting a &quot;1180 call to possibly undefined method crop&quot;  I am just doing a test to play with it so Im using the code example above.import nl.stroep.utils.*var myCroppedImage:Bitmap = crop( 100, 100, 200, 200 );
this.addChild ( myCroppedImage );what am I screwing up?</description> <content:encoded><![CDATA[<p>I&#8217;m trying to use this class but I am getting a &#8220;1180 call to possibly undefined method crop&#8221;  I am just doing a test to play with it so Im using the code example above.</p><p>import nl.stroep.utils.*</p><p>var myCroppedImage:Bitmap = crop( 100, 100, 200, 200 );<br /> this.addChild ( myCroppedImage );</p><p>what am I screwing up?</p> ]]></content:encoded> </item> <item><title>By: Mark Knol</title><link>http://blog.stroep.nl/2009/05/how-to-crop/#comment-12690</link> <dc:creator>Mark Knol</dc:creator> <pubDate>Fri, 08 Jan 2010 19:22:40 +0000</pubDate> <guid isPermaLink="false">http://blog.stroep.nl/?p=510#comment-12690</guid> <description>If you used copyPixel(), then you have a bitmap object? imagine your bitmap is named myBitmap, then this would be the code:var myCroppedImage:Bitmap = crop( 100, 100, 200, 200, myBitmap );
this.addChild ( myCroppedImage );</description> <content:encoded><![CDATA[<p>If you used copyPixel(), then you have a bitmap object? imagine your bitmap is named myBitmap, then this would be the code:</p><p>var myCroppedImage:Bitmap = crop( 100, 100, 200, 200, myBitmap );<br /> this.addChild ( myCroppedImage );</p> ]]></content:encoded> </item> <item><title>By: satish</title><link>http://blog.stroep.nl/2009/05/how-to-crop/#comment-12667</link> <dc:creator>satish</dc:creator> <pubDate>Thu, 07 Jan 2010 15:50:37 +0000</pubDate> <guid isPermaLink="false">http://blog.stroep.nl/?p=510#comment-12667</guid> <description>Hello,I have gone thru some of examples and i find them interesting.
I am trying to develop a crop tool having rectangle, circular, triangular kind of shapes. I did therectagular  crop using copyPixel(). But  I am not getting the other crop-shapes.
Can you help me out of this problem by giving suggestions or some hints.I hope you will.rgds,Satish</description> <content:encoded><![CDATA[<p>Hello,</p><p>I have gone thru some of examples and i find them interesting.<br /> I am trying to develop a crop tool having rectangle, circular, triangular kind of shapes. I did the</p><p>rectagular  crop using copyPixel(). But  I am not getting the other crop-shapes.<br /> Can you help me out of this problem by giving suggestions or some hints.</p><p>I hope you will.</p><p>rgds,</p><p>Satish</p> ]]></content:encoded> </item> <item><title>By: kerja keras</title><link>http://blog.stroep.nl/2009/05/how-to-crop/#comment-9217</link> <dc:creator>kerja keras</dc:creator> <pubDate>Mon, 19 Oct 2009 10:50:59 +0000</pubDate> <guid isPermaLink="false">http://blog.stroep.nl/?p=510#comment-9217</guid> <description>thank for this great tips, its very helpful.</description> <content:encoded><![CDATA[<p>thank for this great tips, its very helpful.</p> ]]></content:encoded> </item> <item><title>By: Mark</title><link>http://blog.stroep.nl/2009/05/how-to-crop/#comment-7651</link> <dc:creator>Mark</dc:creator> <pubDate>Thu, 27 Aug 2009 07:50:12 +0000</pubDate> <guid isPermaLink="false">http://blog.stroep.nl/?p=510#comment-7651</guid> <description>@israel: Did you try it? I think it is possible, because I think the google map (in flash) is a displayobject too. Only thing is that is wont update, till you crop again. I guess cropping each frame is cpu intensive. this crop is not suppose to be mask.
Please also take a look at this: http://code.google.com/apis/maps/faq.html#bitmapdata</description> <content:encoded><![CDATA[<p>@israel: Did you try it? I think it is possible, because I think the google map (in flash) is a displayobject too. Only thing is that is wont update, till you crop again. I guess cropping each frame is cpu intensive. this crop is not suppose to be mask.<br /> Please also take a look at this: <a href="http://code.google.com/apis/maps/faq.html#bitmapdata" rel="nofollow">http://code.google.com/apis/maps/faq.html#bitmapdata</a></p> ]]></content:encoded> </item> </channel> </rss>