Any Idea how to capture screen in SDK 8.1 windows phone from code? For windows phone 7.5 i have seen the code and tried to use, but it failed. :(
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
To save the rendered image as an image file, we have to send it to a stream, encode it to the file type we want.
This is a method we can use for that (It takes in a UI element, a stream and a Guid):
We can then use the FileSavePicker class on Windows Phone 8.1 to decide the filetype, name and saving location.
When the user has picked the file location, it comes back to ContinueFileSavePicker.
More details here.
You can use a
RenderTargetBitmap
and pass it a FrameworkElement that represents the page and then render a bitmap from that.try something like:
where the XAML on your page is: