我试图在我的Windows移动应用程序运行时捕获屏幕.到目前为止我有这个,但我一直得到一个ArgumentException The parameter is incorrect
.我究竟做错了什么?
WriteableBitmap wb = new WriteableBitmap((int)this.ActualWidth, (int)this.ActualHeight);
wb.Render(this, null);
wb.Invalidate();
MemoryStream ms = new MemoryStream();
int h = 212;
int w = 444;
wb.SaveJpeg(ms, w, h, 0, 100); // The parameter is incorrect
BitmapImage bitmapImage = new BitmapImage();
bitmapImage.SetSource(ms);
image1.Source = bitmapImage;
Run Code Online (Sandbox Code Playgroud)
以上是在我的MainPage构造函数中.
我设法使用了Matt建议的精彩教程.
但是,它似乎没有捕获任何东西WebBrowser
.
1)有没有人知道本机电子邮件应用程序如何呈现HTML电子邮件 - 它使用什么组件?
2)用于在Windows Phone 7系列中创建本机应用程序的内容是什么?