An easy to use view in which you can draw with multiple colors and thicknesses for Xamarin and Xamarin.Forms
Install the nuget package and add a reference to Mono.Android.Export to your Android project (will be done via the Nuget package in the future)
Install the nuget package and call "PainterRenderer.Init();" Inside the FinishedLaunching of your app delegate
Since Windows Phone is nearing the end of it's life this plugin will no longer be supporting the UWP platform. From now on out only iOS and Android will be supported.
Creating a PainterView in code is done like this
Painter.Forms.PainterView v = new Painter.Forms.PainterView() { HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand };
In XAML you will need to add the reference xmlns:painter="clr-namespace:Painter.Forms;assembly=Painter.Forms"
to your top class and then you can create a PainterView like this <painter:PainterView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" />
You Must define a Width and Height on Android or the plugin will crash since it can't create a Bitmap of 0 by 0 pixels, this bug will be fixed in a future release.
This project is nowhere near a finished product at the moment, keep in mind that the code may be refactored in the future which can break your current implementation (though I'll try not to break it)
- Xamarin.iOS
- Xamarin.Droid
- Xamarin.Forms (iOS, Android)
- Stroke color
- Stroke thickness
- Background image
- Save an image directly to the device
- Retrieve an image object
- Retrieve a MemoryStream with the image data (i.e. for networking)
- Retrieve a JSON string
- Save a JSON string directly to the device
- Load a JSON string
- Load a file from the device
- Load a background image