Telerik UI for Windows Phone by Progress

Using RadImageEditor

Using RadImageEditor is as simple as creating an instance of it and fill its Tools collection with image editor tools. For example:

CopyXAML
<telerikImageEditor:RadImageEditor Source="myImage.jpg">
    <telerikImageEditor:BrightnessTool/>
    <telerikImageEditor:SaturationTool/>
    <telerikImageEditor:SharpenTool/>
</telerikImageEditor:RadImageEditor>
CopyC#
RadImageEditor imageEditor = new RadImageEditor();
imageEditor.Source = new BitmapImage(new Uri("myImage.png", UriKind.Relative));
imageEditor.Tools.Add(new SharpenTool());
imageEditor.Tools.Add(new BrightnessTool());
imageEditor.Tools.Add(new SaturationTool());
Note

The following namespace is required in order to instantiate RadImageEditor:

CopyXAML
xmlns:telerikImageEditor="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ImageEditor"

After the tools are added and the user edits the image developers can use the ImageSaving event to specify the quality of the saved image and its file name:

CopyC#
void imageEditor_ImageSaving(object sender, ImageSavingEventArgs e)
{
    e.FileName = "myImage.jpg";
    e.JpgQuality = 75;
}