<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>WriteableBitmapEx</title><link>http://writeablebitmapex.codeplex.com/project/feeds/rss</link><description>The WriteableBitmapEx library is a collection of extension methods for the WriteableBitmap. The library adds elementary &amp;#40;drawing&amp;#41; functionality.</description><item><title>New Post: Resizing Image distorts its pixels around corners</title><link>http://writeablebitmapex.codeplex.com/discussions/444207</link><description>&lt;div style="line-height: normal;"&gt;Hi!&lt;br /&gt;
&lt;br /&gt;
I needed to resize an image so I used following code:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;            WriteableBitmap img2 = new WriteableBitmap((int)width, (int)height);
            img2 = img.Resize((int)width, (int)height, WriteableBitmapExtensions.Interpolation.Bilinear);
destination.Blit(new Rect(coords.X, coords.Y, img2.PixelWidth, img2.PixelHeight), img2, new Rect(0,0, img2.PixelWidth, img2.PixelHeight));
            return destination;&lt;/code&gt;&lt;/pre&gt;

But when i save this destination image it becomes distorted around the edges and gives me this image:&lt;br /&gt;
&lt;img src="http://www.flickr.com/photos/67703456@N04/8753994141/in/photostream" alt="Image" /&gt;&lt;br /&gt;
&lt;br /&gt;
Any ideas for what can be wrong here?&lt;br /&gt;
&lt;/div&gt;</description><author>Tehreem</author><pubDate>Sun, 19 May 2013 19:00:13 GMT</pubDate><guid isPermaLink="false">New Post: Resizing Image distorts its pixels around corners 20130519070013P</guid></item><item><title>Closed Feature: Add Fill methods [11053]</title><link>http://writeablebitmapex.codeplex.com/workitem/11053</link><description>Implement various Fill&amp;#42;&amp;#40;&amp;#41; methods as addition to the Draw&amp;#42;&amp;#40;&amp;#41; methods like FillEllipse&amp;#40;&amp;#41;, FillRect&amp;#40;&amp;#41;, ...&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:54 GMT</pubDate><guid isPermaLink="false">Closed Feature: Add Fill methods [11053] 20130516113654A</guid></item><item><title>Closed Feature: Add parametric Curve method [11054]</title><link>http://writeablebitmapex.codeplex.com/workitem/11054</link><description>Implement a DrawBezier&amp;#40;&amp;#41; and DrawCurve&amp;#40;&amp;#41; method to support parametric curves &amp;#47; splines.&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:53 GMT</pubDate><guid isPermaLink="false">Closed Feature: Add parametric Curve method [11054] 20130516113653A</guid></item><item><title>Closed Issue: Clip DrawEllipse at boundaries [12552]</title><link>http://writeablebitmapex.codeplex.com/workitem/12552</link><description>See &amp;#91;discussion&amp;#58;208643&amp;#93;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;writeablebitmapex.codeplex.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;208643&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:53 GMT</pubDate><guid isPermaLink="false">Closed Issue: Clip DrawEllipse at boundaries [12552] 20130516113653A</guid></item><item><title>Closed Feature: 90° Rotate methods [13362]</title><link>http://writeablebitmapex.codeplex.com/workitem/13362</link><description>To make the transformation methods complete, a Rotate method should be added with support for 90&amp;#176; steps.&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:53 GMT</pubDate><guid isPermaLink="false">Closed Feature: 90° Rotate methods [13362] 20130516113653A</guid></item><item><title>Closed Issue: Bug on WriteableBitmapExtensions.cs [13563]</title><link>http://writeablebitmapex.codeplex.com/workitem/13563</link><description>At line 63, actual code&amp;#58;&lt;br /&gt;  int h &amp;#61; bmp.PixelWidth&amp;#59;&lt;br /&gt;&amp;#160;&lt;br /&gt;Right code&amp;#58;&lt;br /&gt; int h &amp;#61; bmp.PixelHeight&amp;#59;&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:52 GMT</pubDate><guid isPermaLink="false">Closed Issue: Bug on WriteableBitmapExtensions.cs [13563] 20130516113652A</guid></item><item><title>Closed Feature: Flip methods [13816]</title><link>http://writeablebitmapex.codeplex.com/workitem/13816</link><description>Implement FlipHorizontal and FlipVertical methods.&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:52 GMT</pubDate><guid isPermaLink="false">Closed Feature: Flip methods [13816] 20130516113652A</guid></item><item><title>Closed Issue: GetPixel Bug? [14151]</title><link>http://writeablebitmapex.codeplex.com/workitem/14151</link><description>I think I found a bug in GetPixel, there are some casts missing for retrieving the colour components. You should be able to reproduce the issue by looping over the pixels and doing bmp.SetPixel&amp;#40;x,y,bmp.GetPixel&amp;#40;x,y&amp;#41;&amp;#41;&lt;br /&gt;&amp;#160;&lt;br /&gt;WriteableBitmapBaseExtensions.cs Line 170&lt;br /&gt;         return Color.FromArgb&amp;#40;a, &amp;#40;byte&amp;#41;&amp;#40;&amp;#40;c &amp;#62;&amp;#62; 16&amp;#41; &amp;#42; ai&amp;#41;, &amp;#40;byte&amp;#41;&amp;#40;&amp;#40;c &amp;#62;&amp;#62; 8&amp;#41;&amp;#42; ai&amp;#41;, &amp;#40;byte&amp;#41;&amp;#40;c &amp;#42; ai&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;Fix&amp;#58;&lt;br /&gt;         return Color.FromArgb&amp;#40;a, &amp;#40;byte&amp;#41;&amp;#40;&amp;#40;byte&amp;#41;&amp;#40;c &amp;#62;&amp;#62; 16&amp;#41; &amp;#42; ai&amp;#41;, &amp;#40;byte&amp;#41;&amp;#40;&amp;#40;byte&amp;#41;&amp;#40;c &amp;#62;&amp;#62; 8&amp;#41;&amp;#42; ai&amp;#41;, &amp;#40;byte&amp;#41;&amp;#40;&amp;#40;byte&amp;#41;c &amp;#42; ai&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#160;&lt;br /&gt;I did try to create and upload a patch but for some reason the mime type of the file was jpeg, I don&amp;#39;t know if that is because my TortoiseSVN is slightly out of date or if the problem lies elsewhere.&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:52 GMT</pubDate><guid isPermaLink="false">Closed Issue: GetPixel Bug? [14151] 20130516113652A</guid></item><item><title>Closed Task: Windows Phone release [14361]</title><link>http://writeablebitmapex.codeplex.com/workitem/14361</link><description>Starting with version 1.0 a ready-to-use WP7 built should be provided.&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:52 GMT</pubDate><guid isPermaLink="false">Closed Task: Windows Phone release [14361] 20130516113652A</guid></item><item><title>Closed Feature: Add Convolute method [14796]</title><link>http://writeablebitmapex.codeplex.com/workitem/14796</link><description>Add the Convolute method as suggested here&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;writeablebitmapex.codeplex.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;236374&amp;#38;ANCHOR&amp;#35;Post528218&lt;br /&gt;&amp;#160;&lt;br /&gt;Todo&amp;#58;&lt;br /&gt;The alpha value should be preserved. &lt;br /&gt;Use rectangular array as kernel parameter to avoid kernelwWdth and kernelHeight parameters.&lt;br /&gt;Optimizations. &lt;br /&gt;The values should wrapped at the borders.&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:51 GMT</pubDate><guid isPermaLink="false">Closed Feature: Add Convolute method [14796] 20130516113651A</guid></item><item><title>Closed Issue: DrawLine is not working correctly for boundary points [14941]</title><link>http://writeablebitmapex.codeplex.com/workitem/14941</link><description>The DrawLine method is not drawing all the points between the starting &amp;#40;x,y&amp;#41; point and the ending &amp;#40;x2,y2&amp;#41; points. For example you can create a new WriteableBitmap having &amp;#40;10,10&amp;#41; size and try to draw the line from &amp;#40;0,0&amp;#41; to &amp;#40;9,9&amp;#41;. The latest point &amp;#40;9,9&amp;#41; will not be affected by the DrawLine method. I suspect there is a boundary check which stops drawing before the ending point is reached.&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:51 GMT</pubDate><guid isPermaLink="false">Closed Issue: DrawLine is not working correctly for boundary points [14941] 20130516113651A</guid></item><item><title>Closed Issue: Bug in Crop when width/height is same as the source width/height [15084]</title><link>http://writeablebitmapex.codeplex.com/workitem/15084</link><description>When using the .Crop function with the same width &amp;#40;or height&amp;#41; as the source width &amp;#40;or height&amp;#41; , the returned result is one pixel smaller.&lt;br /&gt;&amp;#160;&lt;br /&gt;Dim img As New WriteableBitmap&amp;#40;100, 100&amp;#41;&lt;br /&gt;  &lt;br /&gt;Dim img2 As WriteableBitmap &amp;#61; img.Crop&amp;#40;0, 0, 50, 50&amp;#41;&lt;br /&gt;&amp;#39;Correct &amp;#58; returns a 50x50 image&lt;br /&gt;&amp;#160;&lt;br /&gt;Dim img3 &amp;#61; img.Crop&amp;#40;0, 0, 100, 50&amp;#41;&lt;br /&gt;&amp;#39;Bug&amp;#63;  &amp;#58; returns a 99x50 image , expected 100x50&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:51 GMT</pubDate><guid isPermaLink="false">Closed Issue: Bug in Crop when width/height is same as the source width/height [15084] 20130516113651A</guid></item><item><title>Closed Feature: Free Rotate Methods [15214]</title><link>http://writeablebitmapex.codeplex.com/workitem/15214</link><description>In addition to the 90&amp;#176; fixed methods, support for any angle should be added.&lt;br /&gt;Follow up to http&amp;#58;&amp;#47;&amp;#47;writeablebitmapex.codeplex.com&amp;#47;workitem&amp;#47;13362&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:50 GMT</pubDate><guid isPermaLink="false">Closed Feature: Free Rotate Methods [15214] 20130516113650A</guid></item><item><title>Closed Issue: FillRectangle off-by-1 [15515]</title><link>http://writeablebitmapex.codeplex.com/workitem/15515</link><description>FillRectangle is drawing 1 extra pixel in the top right corner&lt;br /&gt;&amp;#160;&lt;br /&gt;WriteableBitmapFillExtensions.cs Line 85&amp;#58;&lt;br /&gt;&amp;#160;&lt;br /&gt;for &amp;#40;int x &amp;#61; startYPlusX1&amp;#59; x &amp;#60;&amp;#61; endOffset&amp;#59; x&amp;#43;&amp;#43;&amp;#41;&lt;br /&gt;&amp;#160;&lt;br /&gt;Proposed fix&amp;#58;&lt;br /&gt;&amp;#160;&lt;br /&gt;for &amp;#40;int x &amp;#61; startYPlusX1&amp;#59; x &amp;#60; endOffset&amp;#59; x&amp;#43;&amp;#43;&amp;#41;&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:50 GMT</pubDate><guid isPermaLink="false">Closed Issue: FillRectangle off-by-1 [15515] 20130516113650A</guid></item><item><title>Closed Feature: Make available as NuGet Package [15697]</title><link>http://writeablebitmapex.codeplex.com/workitem/15697</link><description>Nothing more to say... would be great if the package would be available as a public NuGet package for easier &amp;#47; quicker installation &amp;#40;yep, I&amp;#39;m this lazy&amp;#33; &amp;#59;-&amp;#41; &amp;#41;.&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:50 GMT</pubDate><guid isPermaLink="false">Closed Feature: Make available as NuGet Package [15697] 20130516113650A</guid></item><item><title>Closed Issue: FillEllipseCentered hangs when radius is zero [16074]</title><link>http://writeablebitmapex.codeplex.com/workitem/16074</link><description>In that case, I would simply expect nothing to be drawn &amp;#58;&amp;#41;&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:49 GMT</pubDate><guid isPermaLink="false">Closed Issue: FillEllipseCentered hangs when radius is zero [16074] 20130516113649A</guid></item><item><title>Closed Issue: FillRectangle draws a one-pixel line at the edge when it is out of bounds [16075]</title><link>http://writeablebitmapex.codeplex.com/workitem/16075</link><description>bmp.FillRectangle&amp;#40;-10, 10, -5, 20, Colors.Red&amp;#41; produces a vertical line &amp;#40;0, 10&amp;#41;-&amp;#40;0, 20&amp;#41;. Same applies to all other edges as well.&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:49 GMT</pubDate><guid isPermaLink="false">Closed Issue: FillRectangle draws a one-pixel line at the edge when it is out of bounds [16075] 20130516113649A</guid></item><item><title>Closed Issue: DrawPolyline points not connected [16201]</title><link>http://writeablebitmapex.codeplex.com/workitem/16201</link><description>As you can see in the attached file &amp;#34;polyline-points-not-connected.PNG&amp;#34; &amp;#40;as well as in the second example&amp;#41; the line between certain points inserted into the DrawPolyline aren&amp;#39;t always connected. This makes it difficult for the user to recognize an actual data point.&lt;br /&gt;&amp;#160;&lt;br /&gt;The following array of data was inserted into a WriteableBitmap of 1375x400&amp;#58;&lt;br /&gt;50,349,60,349,71,350,82,350,92,116,103,140,114,334,124,346,135,348,146,348,157,349,167,349,178,348,189,349,199,349,210,349,221,350,231,349,242,349,253,349,264,349,274,349,285,346,296,347,306,105,317,342,328,349,338,349,349,349,360,349,371,349,381,346,392,348,403,348,413,348,424,349,435,350,445,350,456,350,467,350,478,-341,488,334,499,346,510,349,520,348,531,348,542,349,553,346,563,343,574,344,585,346,595,348,606,346,617,326,627,348,638,348,649,349,660,350,670,348,681,349,692,346,702,344,713,348,724,346,734,343,745,347,756,335,767,346,777,348,788,349,799,349,809,349,820,349,831,349,841,350,852,350,863,348,874,350,884,349,895,350,906,349,916,349,927,349,938,349,949,349,959,349,970,348,981,349,991,343,1002,335,1013,340,1023,349,1034,349,1045,349,1056,350,1066,350,1077,349,1088,349,1098,341,1109,349,1120,349,1130,349,1141,350,1152,348,1163,332,1173,343,1184,350,1195,350,1205,349,1216,347,1227,350,1237,349,1248,348,1259,346,1270,191,1280,-510,1291,338,1302,350,1312,347,1323,350,1334,348,1345,348&lt;br /&gt;&amp;#160;&lt;br /&gt;Also, thanks a lot for the classy extension.&lt;br /&gt;&amp;#160;&lt;br /&gt;Edit&amp;#58;&lt;br /&gt;Old ticket replaced &amp;#40;but attachment remaining&amp;#41;&amp;#59; I was fairly sure I was using the latest version but apparently I wasn&amp;#39;t and updating solved that but introduced a new issue.&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:49 GMT</pubDate><guid isPermaLink="false">Closed Issue: DrawPolyline points not connected [16201] 20130516113649A</guid></item><item><title>Closed Issue: Nuget Package with strong Name [16636]</title><link>http://writeablebitmapex.codeplex.com/workitem/16636</link><description>Could you Sign your assembly on nuget.&lt;br /&gt;&amp;#160;&lt;br /&gt;Thanks&lt;br /&gt;</description><author>teichgraf</author><pubDate>Thu, 16 May 2013 11:36:48 GMT</pubDate><guid isPermaLink="false">Closed Issue: Nuget Package with strong Name [16636] 20130516113648A</guid></item><item><title>Closed Issue: FillRectangle throws IndexOutOfRangeExceptions [16810]</title><link>http://writeablebitmapex.codeplex.com/workitem/16810</link><description>... when negative coordinates are passed. This is the bug introduced in the latest version, the stable version works well.&lt;br /&gt;</description><author>skalkin</author><pubDate>Thu, 16 May 2013 11:36:48 GMT</pubDate><guid isPermaLink="false">Closed Issue: FillRectangle throws IndexOutOfRangeExceptions [16810] 20130516113648A</guid></item></channel></rss>