现在,当我保存图像时,它会提示 FileSavePicker。我可以以编程方式将图像保存在本地存储中,而不是调用 FileSavePicker。请帮忙谢谢。
FileSavePicker savePicker = new FileSavePicker();
savePicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
savePicker.FileTypeChoices.Add("PNG image", new List<string>() { ".png" });
if (sourceFile == null)
{
this.Frame.Navigate(typeof(GroupedItemsPage));
}
savePicker.SuggestedFileName = "CroppedImage";
StorageFile cropfile = await savePicker.PickSaveFileAsync();
cropAndSaveImage(cropfile);