How can I add text in SfImageEditor after the image has loaded?
This section explains how to add text programmatically when imageeditor loaded in a view.
Create SfImageEditor sample with all necessary assemblies.
Please refer the below link to create a simple SfImageEditor sample along with the ways to configure it.
https://help.syncfusion.com/xamarin/sfimageeditor/getting-started
To add text programmatically when imageeditor loaded in a view in two types such as
1.Without Image
2.With Image
Without Image:
To add text, you need to call AddText() method when loading image editor in sample as like below code snippet
Device.StartTimer(TimeSpan.FromMilliseconds(1000), () => { editor.AddText("Text", new TextSettings()); return false; });
Screen Shot:
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/IESample_(2)1258160418.zip
With Image:
To add text when loading image editor with image, you need to call image loaded event as like below code snippet
editor.ImageLoaded += (Object sender, ImageLoadedEventArgs args) => { editor.AddText("Text", new TextSettings()); };
Screen Shot:
Sample Link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/IESample378534320.zip