I am trying to capture the screen whilst my windows mobile application is running. I have this so far but I keep getting an ArgumentException of The parameter is incorrect
. What am I doing wrong?
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;
The above is within my MainPage constructor.
Update
I managed to make use the great tutorial suggested by Matt.
However, it doesn't seem to capture anything from the WebBrowser
.
1) Does anyone know how the native email application renders HTML email - what component does it use?
2) What is used to create the native applications in the Windows Phone 7 series?