<?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>Stroep &#187; bitmapdata</title> <atom:link href="http://blog.stroep.nl/tag/bitmapdata/feed/" rel="self" type="application/rss+xml" /><link>http://blog.stroep.nl</link> <description>Just a collection of random works - Mark Knol</description> <lastBuildDate>Tue, 10 Jan 2012 20:09:53 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>getBounds for TextFields = getBitmapBounds()</title><link>http://blog.stroep.nl/2009/11/getbitmapbounds/</link> <comments>http://blog.stroep.nl/2009/11/getbitmapbounds/#comments</comments> <pubDate>Thu, 05 Nov 2009 18:05:32 +0000</pubDate> <dc:creator>Mark Knol</dc:creator> <category><![CDATA[actionscript]]></category> <category><![CDATA[Code snippets]]></category> <category><![CDATA[bitmapdata]]></category> <category><![CDATA[snippet]]></category><guid isPermaLink="false">http://blog.stroep.nl/?p=799</guid> <description><![CDATA[<img src="http://blog.stroep.nl/wp-content/snippet.jpg" alt="Code snippet" align="left" class="alignleft size-full wp-image-588" />I found out the getBounds()-function gives not exactly the right rectangle with a TextField. It always matches the border bounds, even if the borders are invisible. So i've created a more accurate function using getColorBoundsRect().]]></description> <content:encoded><![CDATA[<p><img src="http://blog.stroep.nl/wp-content/snippet.jpg" alt="Code snippet" align="left" class="alignleft size-full wp-image-588" />I found out the getBounds()-function gives not exactly the right rectangle with a TextField. It always matches the border bounds, even if the borders are invisible. So I&#8217;ve created a more accurate function using getColorBoundsRect().</p><p>Click on the words. Switch between getRect() and getTextFieldBounds() by clicking on the buttons below to see the difference.</p><p><object type="application/x-shockwave-flash" data="http://projects.stroep.nl/getBitmapBounds/GetBitmapBounds.swf" width="550" height="140"><param name="movie" value="http://projects.stroep.nl/getBitmapBounds/GetBitmapBounds.swf" /></object></p><p>» <a href="http://projects.stroep.nl/getBitmapBounds/GetBitmapBounds.zip"><b>Download source</b></a></p> ]]></content:encoded> <wfw:commentRss>http://blog.stroep.nl/2009/11/getbitmapbounds/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
