Skip to content

Commit

Permalink
Merge pull request #36 from SyncfusionExamples/SF3600_ImageEditor
Browse files Browse the repository at this point in the history
Sample(SF3600_ImageEditor): Some modification of getting Started with the Blazor ImageEditor Component
  • Loading branch information
rajendranr-5483 authored Aug 1, 2024
2 parents f82eecf + 11b783f commit e084f43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 48 deletions.
17 changes: 2 additions & 15 deletions imageEditor/BlazorServerApp/Pages/Index.razor
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
@page "/"

@using Syncfusion.Blazor.Buttons

<div style="padding-bottom: 15px">
<SfButton OnClick="ExportAsync">Export</SfButton>
</div>

<SfImageEditor @ref="ImageEditor" Height="400">
<ImageEditorEvents Created="OpenAsync"></ImageEditorEvents>
</SfImageEditor>
Expand All @@ -18,15 +12,8 @@
{
if (ImageEditor != null)
{
await ImageEditor.OpenAsync("Nature.jpg");
await ImageEditor.OpenAsync("https://blazor.syncfusion.com/demos/_content/blazor_server_common_net8/images/image-editor/desktop.png");
}
}

private async void ExportAsync()
{
if (ImageEditor != null)
{
await ImageEditor.ExportAsync("Syncfusion", ImageEditorFileType.PNG);
}
}
}
}
18 changes: 2 additions & 16 deletions imageEditor/BlazorWebApp/BlazorWebApp.Client/Pages/Home.razor
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
@page "/"

@using Syncfusion.Blazor.Buttons

<div style="padding-bottom: 15px">
<SfButton OnClick="ExportAsync">Export</SfButton>
</div>

<SfImageEditor @ref="ImageEditor" Height="400">
<ImageEditorEvents Created="OpenAsync"></ImageEditorEvents>
</SfImageEditor>
Expand All @@ -18,16 +12,8 @@
{
if (ImageEditor != null)
{
await ImageEditor.OpenAsync("Nature.jpg");
}
}

private async void ExportAsync()
{
if (ImageEditor != null)
{
await ImageEditor.ExportAsync("Syncfusion", ImageEditorFileType.PNG);
await ImageEditor.OpenAsync("https://blazor.syncfusion.com/demos/_content/blazor_server_common_net8/images/image-editor/desktop.png");
}
}
}

}
19 changes: 2 additions & 17 deletions imageEditor/BlazorWebAssemblyApp/Pages/Index.razor
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
@page "/"

@using Syncfusion.Blazor.Buttons

<div style="padding-bottom: 15px">
<SfButton OnClick="ExportAsync">Export</SfButton>
</div>

<SfImageEditor @ref="ImageEditor" Height="400">
<ImageEditorEvents Created="OpenAsync"></ImageEditorEvents>
</SfImageEditor>
Expand All @@ -18,16 +12,7 @@
{
if (ImageEditor != null)
{
await ImageEditor.OpenAsync("Nature.jpg");
await ImageEditor.OpenAsync("https://blazor.syncfusion.com/demos/_content/blazor_server_common_net8/images/image-editor/desktop.png");
}
}

private async void ExportAsync()
{
if (ImageEditor != null)
{
await ImageEditor.ExportAsync("Syncfusion", ImageEditorFileType.PNG);
}
}
}

}

0 comments on commit e084f43

Please sign in to comment.