a tool to edit image
MIT License
a tool to edit image in uwp
this is a tool(libaray) for editing image in uwp. You can crop, rotate, select layout, apply image-filter, tune brightness and color, add stickers onto image, add tags such as location, drawing and etc.
this tool has these features below:
BitmapImage
object, which you can directly use.Notes:
the json file like below:
{
"papers":
[
{
"name":"",
"image_url":"http://d.lanrentuku.com/down/png/1510/haizeiwang-png/notes.png",
"des":""
},
{
"name":"",
"image_url":"http://d.lanrentuku.com/down/png/1510/haizeiwang-png/gallery.png",
"des":""
},
{
"name":"",
"image_url":"http://d.lanrentuku.com/down/png/1510/haizeiwang-png/maps.png",
"des":""
}
]
}
it's very simple to use this tool(libaray), you just need these code snippets below:
private async void EditLocal_Tapped(object sender, TappedRoutedEventArgs e)
{
FileOpenPicker fo = new FileOpenPicker();
fo.FileTypeFilter.Add(".png");
fo.FileTypeFilter.Add(".jpg");
fo.SuggestedStartLocation = PickerLocationId.Desktop;
var f = await fo.PickSingleFileAsync();
if (f != null)
{
// create instance and show it
ImageEditorControl editor = new ImageEditorControl();
editor.Show(f);
//register event to get edited image
editor.ImageEditedCompleted += (image_edited) =>
{
image.Source = image_edited;
};
}
}