How to save image using JpegBitmapEncoder
问题 According to the image encoding example here I should be able to use JpegBitmapEncoder to encode an image for saving as a jpeg file but get this compile error: error CS1503: Argument 1: cannot convert from 'System.Windows.Controls.Image' to 'System.Uri' I don't see a way (property or method in Image) to get System.Uri from Image. What am I missing? The Image xaml code is <Image Name="ColorImage"/> The SaveImage C# is ... SaveImage(ColorImage, path); ... private void SaveImage(Image image,