Skip to content

Commit e084f43

Browse files
Merge pull request #36 from SyncfusionExamples/SF3600_ImageEditor
Sample(SF3600_ImageEditor): Some modification of getting Started with the Blazor ImageEditor Component
2 parents f82eecf + 11b783f commit e084f43

File tree

3 files changed

+6
-48
lines changed

3 files changed

+6
-48
lines changed
Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
@page "/"
22

3-
@using Syncfusion.Blazor.Buttons
4-
5-
<div style="padding-bottom: 15px">
6-
<SfButton OnClick="ExportAsync">Export</SfButton>
7-
</div>
8-
93
<SfImageEditor @ref="ImageEditor" Height="400">
104
<ImageEditorEvents Created="OpenAsync"></ImageEditorEvents>
115
</SfImageEditor>
@@ -18,15 +12,8 @@
1812
{
1913
if (ImageEditor != null)
2014
{
21-
await ImageEditor.OpenAsync("Nature.jpg");
15+
await ImageEditor.OpenAsync("https://blazor.syncfusion.com/demos/_content/blazor_server_common_net8/images/image-editor/desktop.png");
2216
}
2317
}
2418

25-
private async void ExportAsync()
26-
{
27-
if (ImageEditor != null)
28-
{
29-
await ImageEditor.ExportAsync("Syncfusion", ImageEditorFileType.PNG);
30-
}
31-
}
32-
}
19+
}
Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
@page "/"
22

3-
@using Syncfusion.Blazor.Buttons
4-
5-
<div style="padding-bottom: 15px">
6-
<SfButton OnClick="ExportAsync">Export</SfButton>
7-
</div>
8-
93
<SfImageEditor @ref="ImageEditor" Height="400">
104
<ImageEditorEvents Created="OpenAsync"></ImageEditorEvents>
115
</SfImageEditor>
@@ -18,16 +12,8 @@
1812
{
1913
if (ImageEditor != null)
2014
{
21-
await ImageEditor.OpenAsync("Nature.jpg");
22-
}
23-
}
24-
25-
private async void ExportAsync()
26-
{
27-
if (ImageEditor != null)
28-
{
29-
await ImageEditor.ExportAsync("Syncfusion", ImageEditorFileType.PNG);
15+
await ImageEditor.OpenAsync("https://blazor.syncfusion.com/demos/_content/blazor_server_common_net8/images/image-editor/desktop.png");
3016
}
3117
}
32-
}
3318

19+
}
Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
@page "/"
22

3-
@using Syncfusion.Blazor.Buttons
4-
5-
<div style="padding-bottom: 15px">
6-
<SfButton OnClick="ExportAsync">Export</SfButton>
7-
</div>
8-
93
<SfImageEditor @ref="ImageEditor" Height="400">
104
<ImageEditorEvents Created="OpenAsync"></ImageEditorEvents>
115
</SfImageEditor>
@@ -18,16 +12,7 @@
1812
{
1913
if (ImageEditor != null)
2014
{
21-
await ImageEditor.OpenAsync("Nature.jpg");
15+
await ImageEditor.OpenAsync("https://blazor.syncfusion.com/demos/_content/blazor_server_common_net8/images/image-editor/desktop.png");
2216
}
2317
}
24-
25-
private async void ExportAsync()
26-
{
27-
if (ImageEditor != null)
28-
{
29-
await ImageEditor.ExportAsync("Syncfusion", ImageEditorFileType.PNG);
30-
}
31-
}
32-
}
33-
18+
}

0 commit comments

Comments
 (0)