Articles in this section
Category / Section

How to add text after an Image is loaded in the .NET MAUI Image Editor (SfImageEditor)?

1 min read

The Syncfusion® .NET MAUI Image Editor (SfImageEditor) allows you to add text after the image is loaded. This guide demonstrates how to achieve this by using the ImageLoaded event.

XAML:

Initialize the Image Editor control, provide the source image, and trigger the ImageLoaded event handler.

<imageEditor:SfImageEditor x:Name="imageEditor" 
   ImageLoaded="SfImageEditor_ImageLoaded"
   Source="image.png">
</imageEditor:SfImageEditor>

C#:

Utilize the ImageLoaded event to add text to the Image Editor once the image is loaded. The example below illustrates this process.

private void SfImageEditor_ImageLoaded(object sender, EventArgs e)
{
   imageEditor.AddText("Text", new ImageEditorTextSettings());
}

Output:

text_imageloaded.png

Conclusion:

I hope you enjoyed learning how to add text after the image is loaded in the .NET MAUI Image Editor (SfImageEditor).

Refer to our .NET MAUI Image Editor feature tour page for other groundbreaking feature representations. You can also explore our .NET MAUI Image Editor documentation to understand how to present and manipulate data.

For current customers, check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Image Editor and other .NET MAUI components.

Please let us know in the following comment section if you have any queries or require clarification. Contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied