I have read this question, High Quality Image Scaling Library , but it only pertains to GDI+.
When I scale down an Image
in my app, it becomes very jaggy.
I can't find any property on the Image
class that allows me to increase the quality of the down-scaling.
How can I do this?
EDIT:
I have now used this code:
BitmapImage img = new BitmapImage();
img.UriSource = new Uri(Graphic, UriKind.Relative);
return img;
where Graphic
is a string
that contains the path to the image, but am getting this exception:
An exception of type 'System.ArgumentException' occurred in Weather.DLL but was not handled in user code
Additional information: The given System.Uri cannot be converted into a Windows.Foundation.Uri. Please see http://go.microsoft.com/fwlink/?LinkID=215849 for details.
As far as I know, Windows.Foundation.Uri
isn't used in the .net
framework.
So why is it giving me this error?