摘要:
屏幕截图并保存至图片库代码: 1 WriteableBitmap bmp = new WriteableBitmap(480, 800); 2 bmp.Render(App.Current.RootVisual, null); 3 bmp.Invalidate(); 4 MemoryStream stream = new MemoryStream(); 5 bmp.SaveJpeg(stream, bmp.PixelWidth, bmp.PixelHeight, 0, 80); 6 stream.Seek(0, SeekOrigin.Begin); 7 MediaLibrary library 阅读全文