Skip to content

Commit f2ce003

Browse files
committed
986121- IE Blazor UG correction based on shared prompt
1 parent a561407 commit f2ce003

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

blazor/image-editor/how-to/clear-image.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
layout: post
33
title: Clear an Image with Blazor Image Editor Component | Syncfusion
4-
description: Learn here all about Clear an Image in Blazor Image Editor component in Blazor Server App and Blazor WebAssembly App.
4+
description: Learn how to clear an image in the Blazor Image Editor component for Blazor Server and WebAssembly applications.
55
platform: Blazor
66
control: Image Editor
77
documentation: ug
88
---
99

1010
# Clear an Image in the Blazor Image Editor component
1111

12-
The [`ClearImageAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.ImageEditor.SfImageEditor.html#Syncfusion_Blazor_ImageEditor_SfImageEditor_ClearImageAsync) method in the image editor control is indeed useful for scenarios where you need to ensure that the image editor is emptied before reopening it, especially if the editor is used within a dialog. By using `ClearImageAsync` before closing the dialog, you can ensure that the editor does not retain the previously loaded image when the dialog is reopened. This allows users to start fresh with a new image selection.
12+
The [ClearImageAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.ImageEditor.SfImageEditor.html#Syncfusion_Blazor_ImageEditor_SfImageEditor_ClearImageAsync) method clears the current image from the editor. This is useful when the component is hosted in a dialog: calling `ClearImageAsync` before closing the dialog prevents the previously loaded image from persisting when the dialog is reopened, ensuring a fresh state for a new selection.
1313

1414
```cshtml
1515
@using Syncfusion.Blazor.ImageEditor
@@ -37,4 +37,4 @@ The [`ClearImageAsync`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.
3737
}
3838
```
3939

40-
![Blazor Image Editor with Resize the custom selection](../images/blazor-image-editor-clear-image.jpg)
40+
![Blazor Image Editor clearing the image](../images/blazor-image-editor-clear-image.jpg)
-3.83 KB
Loading
-7.97 KB
Loading

0 commit comments

Comments
 (0)