Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wilsonvargas/ScreenshotPlugin
A simple Screenshot plugin for Xamarin and Windows to get and save screenshot in yours apps.
https://github.com/wilsonvargas/ScreenshotPlugin
csharp nuget pcl plugin screenshot xamarin xamarin-forms
Last synced: 3 months ago
JSON representation
A simple Screenshot plugin for Xamarin and Windows to get and save screenshot in yours apps.
- Host: GitHub
- URL: https://github.com/wilsonvargas/ScreenshotPlugin
- Owner: wilsonvargas
- License: mit
- Created: 2017-10-03T23:27:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-10T17:45:47.000Z (over 4 years ago)
- Last Synced: 2024-06-28T17:08:33.456Z (4 months ago)
- Topics: csharp, nuget, pcl, plugin, screenshot, xamarin, xamarin-forms
- Language: C#
- Homepage:
- Size: 19.8 MB
- Stars: 33
- Watchers: 1
- Forks: 12
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-xamarin-forms - Screenshot ★31
- awesome-xamarin - Screenshot Plugin ★21 - A simple Screenshot plugin for Xamarin and Windows to get and save screenshot in yours apps. (Media)
README
# Screenshot Plugin for Xamarin and Windows
A simple Screenshot plugin for Xamarin and Windows to get and save screenshot in yours apps.
[![Build status](https://ci.appveyor.com/api/projects/status/1w46g7ebn59w6d0f?svg=true)](https://ci.appveyor.com/project/wilsonvargas/screenshotplugin) [![NuGet](https://buildstats.info/nuget/Xam.Plugin.Screenshot)](https://www.nuget.org/packages/Xam.Plugin.Screenshot/) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/wilsondonations/5)
## NuGet
* NuGet: [Xam.Plugin.Screenshot](https://www.nuget.org/packages/Xam.Plugin.Screenshot)## Github Packages Registry
* Github Packages Registry: [Xam.Plugin.Screenshot](https://github.com/wilsonvargas/ScreenshotPlugin/packages/25791)## Platform Support
|Platform|Version|
| ------------------- | :------------------: |
|Xamarin.iOS|iOS 8+|
|Xamarin.Android|API 14+|
|Windows 10 UWP|10+|## Documentation
### Get bytes[] from screenshot
```c#
using Plugin.Screenshot;...
var stream = new MemoryStream(await CrossScreenshot.Current.CaptureAsync());
yourImage.Source = ImageSource.FromStream(() => stream);
```### Save Screenshot into Gallery Images and return path
```c#
using Plugin.Screenshot;...
string path = await CrossScreenshot.Current.CaptureAndSaveAsync();
```### iOS setup
Add in your Info.plist
```xml
NSPhotoLibraryUsageDescription
This application needs your permission to save photos.
NSPhotoLibraryAddUsageDescription
This application needs your permission to save photos.
```### Created By: [@Wilson Vargas](http://twitter.com/Wilson_VargasM)
* Twitter: [@Wilson_VargasM](http://twitter.com/Wilson_VargasM)
* Blog: [wilsonvargas.net](https://wilsonvargas.net)### License
The MIT License (MIT), see [LICENSE](LICENSE) file.