Author: Pete Brown's Blog (POKE 53280,0) for tag ASP.NET | Posted on: 5/16/2010 1:30:30 AM | Views : 1072

In a previous post, I demonstrated how to use RenderOptions.BitmapScalingMode in WPF to change the quality of the resize of an image. Some folks have questioned why that is necessary when the resizing worked just fine in 3.5sp1 In .NET 4, the default BitmapScalingMode changed from Fant to bilinear for performance reasons. The Fant scaler is CPU-intensive whereas the now default Bilinear is handled by hardware. The net result is a move from 3.5sp1 to .NET 4 will show, in many cases, decreased quality but increased performance for resized bitmaps. The actual result depends on how much resizing you are doing (resizing to less than 30-50% of size will generally show artifacts). To reset to Fant, you can set the RenderOptions.BitmapScaling mode in...(read more) ...

Go to the complete details ...