<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Blurry Bitmaps</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx</link><description>Background: resolution independence WPF was designed from the start to be resolution independent. So instead of designing your UI in terms of pixels, you are encouraged to use a physical measuring unit (like inches). When you specify coordinates in WPF,</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Techy News Blog &amp;raquo; Blurry Bitmaps</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#5302056</link><pubDate>Sat, 06 Oct 2007 02:08:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5302056</guid><dc:creator>Techy News Blog » Blurry Bitmaps</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.artofbam.com/wordpress/?p=5616"&gt;http://www.artofbam.com/wordpress/?p=5616&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Решение проблемы с нечеткими растрами в WPF</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#7413230</link><pubDate>Sun, 03 Feb 2008 17:05:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7413230</guid><dc:creator>Женя Золотько о WPF и разработке GUI вообще</dc:creator><description>&lt;p&gt;Известно, что в текущей версии WPF существует проблема с качеством отображения растров. Возникает она&lt;/p&gt;
</description></item><item><title>Eliminating Fuzzy Bitmaps In WPF</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#8337618</link><pubDate>Wed, 26 Mar 2008 14:42:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8337618</guid><dc:creator>Techniques</dc:creator><description>&lt;p&gt;WPF gives you a lot of functionality, but it's mainly designed to work with vector based graphics. It&lt;/p&gt;
</description></item><item><title>Blurry Text, Images, and Bitmaps in Silverlight and WPF</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#8464860</link><pubDate>Wed, 07 May 2008 07:48:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8464860</guid><dc:creator>makerofthings</dc:creator><description>&lt;p&gt;Information and possible fixes for blurry text in WPF and Silverlight applications&lt;/p&gt;
</description></item><item><title>Blurry Text, Images, and Bitmaps in Silverlight and WPF</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#8464862</link><pubDate>Wed, 07 May 2008 07:49:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8464862</guid><dc:creator>makerofthings</dc:creator><description>&lt;p&gt;Information and possible fixes for blurry text in WPF and Silverlight applications&lt;/p&gt;
</description></item><item><title>A simple decorator to help prevent blurry images and lines</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#8508458</link><pubDate>Thu, 15 May 2008 19:41:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8508458</guid><dc:creator>Actipro</dc:creator><description>&lt;p&gt;We've recently added a PixelSnapper decorator to the Actipro WPF Shared Library, which helps with pixel alignment by providing options for rounding off decimal measurements of child content to integer numbers instead of decimals. &amp;nbsp;Using the PixelSnapper decorator is an easy way to keep everything crisp and clear in your WPF applications.&lt;/p&gt;
&lt;p&gt;More info is here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blog.actiprosoftware.com/post/How-to-prevent-blurry-images-and-lines-in-WPF.aspx"&gt;http://blog.actiprosoftware.com/post/How-to-prevent-blurry-images-and-lines-in-WPF.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Good Old GDI+ (or: Unblur Thy Text)</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#8876355</link><pubDate>Mon, 18 Aug 2008 15:35:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8876355</guid><dc:creator>I Got Rhythm</dc:creator><description>&lt;p&gt;It&amp;amp;#39;s been a while since I&amp;amp;#39;ve done anything with GDI+ (i.e. System.Drawing). System.Windows (i&lt;/p&gt;
</description></item><item><title>Blurry Bitmaps Sample to Data Bound</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#8896625</link><pubDate>Tue, 26 Aug 2008 11:06:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8896625</guid><dc:creator>willlan</dc:creator><description>&lt;p&gt;This is a great piece of code and worked really well, although I was disapointed when if did not work for data bound items. However after a bit of playing I found that if you inherted from framework element instead and used the MeasureOverride Instead of MeasureCore then it will work.&lt;/p&gt;
&lt;p&gt;Thankyou for your great work.&lt;/p&gt;
</description></item><item><title>FrameworkElement is the way to go</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#9470547</link><pubDate>Wed, 11 Mar 2009 17:24:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9470547</guid><dc:creator>small_mountain</dc:creator><description>&lt;p&gt;Thank you, willlan, for posting about changing the base class to FrameworkElement and changing MeasureCore to MeasureOverride. &amp;nbsp;The version deriving from UIElement did not resize if you changed the Source later on to one with a different size than the original. &amp;nbsp;By deriving from FrameworkElement, if you change the Source, it automagically gets remeasured.&lt;/p&gt;
&lt;p&gt;I understand Dwayne's instinct to pick UIElement to avoid the possibility of properties like Width getting explicitly set, but deriving from FrameworkElement makes the result much more generally useful.&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;
</description></item><item><title>re: Blurry Bitmaps</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#9714630</link><pubDate>Tue, 09 Jun 2009 13:43:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9714630</guid><dc:creator>drewnoakes</dc:creator><description>&lt;p&gt;@Eric. &amp;nbsp;I also needed data binding and so changed the base class from UIElement to FrameworkElement, and MeasureCore to MeasureOverride.&lt;/p&gt;
&lt;p&gt;One bug with this implementation is that if you add Margin to the element, the image appears to stretch (even non-uniformly) to fill the margin space too. &amp;nbsp;Still, if you can work around that, it's a nice way to go.&lt;/p&gt;
&lt;p&gt;Thanks Dwayne for this post.&lt;/p&gt;
</description></item><item><title>re: Blurry Bitmaps</title><link>http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx#9726032</link><pubDate>Thu, 11 Jun 2009 10:20:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9726032</guid><dc:creator>drewnoakes</dc:creator><description>&lt;p&gt;I also noticed a problem with the modified code whereby if there's nothing to display, and endless loop can occur, maxing out the CPU. &amp;nbsp;This check guards against this happening:&lt;/p&gt;
&lt;p&gt;private void OnLayoutUpdated(object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;// Avoid getting into an endless loop&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;if (ActualHeight == 0 || ActualWidth == 0)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
</description></item></channel></rss>