在我的应用程序中,可以创建当前视图的屏幕截图。我用WriteableBitmap类实现它。例如:使用应用程序栏创建屏幕截图WP8
var frame = Application.Current.RootVisual as PhoneApplicationFrame; WriteableBitmap bitmap = new WriteableBitmap(frame, null);
BitmapImage result = new BitmapImage();
using (var stream = new MemoryStream())
{
bitmap.SaveJpeg(stream, (int)frame.ActualWidth, (int)frame.ActualHeight, 0, 100);
result.SetSource(stream);
}
的问题是,如果页面上,现在显示的是,有一个应用程序栏,它不会显示在保存的图像。任何想法我应该如何处理这个问题?
重复的http://stackoverflow.com/questions/15392572/wp8-take-screenshot-with-applicationbar/15393476 –