我想用它的背景图像保存我的画布。但是当我保存所有内容时,只有我的台词,没有别的。
我的经典代码“保存画布”:
private async void save_Click_1(object sender, RoutedEventArgs e)
{
if (_inkManager.GetStrokes().Count > 0)
{
try
{
Windows.Storage.Pickers.FileSavePicker save = new Windows.Storage.Pickers.FileSavePicker();
save.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.Desktop;
save.DefaultFileExtension = ".png";
save.FileTypeChoices.Add("PNG", new string[] { ".png" });
StorageFile filesave = await save.PickSaveFileAsync();
IOutputStream ab = await filesave.OpenAsync(FileAccessMode.ReadWrite);
if (ab != null)
await _inkManager.SaveAsync(ab);
}
catch (Exception)
{
}
}
}
你知道我该如何解决吗?