- Home
- Forum
- Xamarin.Forms
- Need Watermark in Image while capture image from Mobile
Need Watermark in Image while capture image from Mobile
Hello ,
I want to add watermark in Image while taking pictures from Mobile camera or select picture from gallery. Please give me suggestion for this requirement.
Please check attachement file for my requirement.
Thanks
Attachment: Bordeaux_Place_Bourse_Fumée_3e307373.rar
SIGN IN To post a reply.
6 Replies
1 reply marked as answer
SS
Sridevi Sivakumar
Syncfusion Team
January 4, 2021 12:43 PM UTC
Hi Cyrille,
Greetings from Syncfusion.
We have analysed the reported query and we have added the watermark text by SfImageEditor AddText() method in the ImageLoaded event as per the below code snippet.
Code snippet:
C#:
Greetings from Syncfusion.
We have analysed the reported query and we have added the watermark text by SfImageEditor AddText() method in the ImageLoaded event as per the below code snippet.
Code snippet:
C#:
|
private void editor_ImageLoaded(object sender, Syncfusion.SfImageEditor.XForms.ImageLoadedEventArgs args)
{
editor.AddText("WaterMark Text", new TextSettings() { FontSize = 40, Color = Color.FromHex("#808080"), Bounds = new Rectangle(40.00, 80.00, 60.00, 40.00) });
} |
We have prepared a sample based on that, please have a sample from below link.
Sample ink: https://www.syncfusion.com/downloads/support/forum/161124/ze/IECameraandGallery1393725345
Please check with the sample and it meets your requirement. Let us know if you need any further assistance.
Regards,
Sridevi S.
HS
Harsh Shah
January 8, 2021 05:56 AM UTC
Refer to this https://help.syncfusion.com/file-formats/docio/applying-watermark may it helps you.
Marked as answer
CY
Cyrille
January 8, 2021 05:42 PM UTC
Thanks for answer, My requirement is if I take picture from CAM then I keep original pic as it and make copy of same picture with resize and watermark and show to user. and want to save both picture on server.
SS
Sridevi Sivakumar
Syncfusion Team
January 11, 2021 11:46 AM UTC
Hi Cyrille,
We have analyzed your requirement and you can get the original image source from SfImagEditor by using Source property.
Code snippet [C#]:
We have analyzed your requirement and you can get the original image source from SfImagEditor by using Source property.
Code snippet [C#]:
|
public SfImageEditorPage()
{
InitializeComponent();
var source = editor.Source;
} |
Also, you can save the picture of the watermark by pressing the save tool bar item from the editor control.
Let us know if you need any further assistance.
Regards,
Sridevi S.
Sridevi S.
CY
Cyrille
January 15, 2021 09:07 PM UTC
Thanks ,
how i can hise Edit tool from Editor and how i can change save button name in French language
RS
Ramya Soundar Rajan
Syncfusion Team
January 18, 2021 09:23 AM UTC
Query 1: how i can hise Edit tool from Editor
We would like to inform that you can hide the SfImageEditor toolbar by using the IsVisible property of the ToolbarSettings as false. Please refer the below help document link.
You can also hide the individual toolbar items using the method SetToolbarItemVisibility. Please refer the below help document link.
Query 2: how i can change save button name in French language
We would like to suggest that you can change Save toolbar item in SfImageEditor by adding equivalent localized strings.
[C#]
|
editor.SetToolbarItemVisibility("path", false); |
Please refer the below help document for more information.
KB Link: https://www.syncfusion.com/kb/10602/how-to-set-localized-string-to-xamarin-forms-sfimageeditor
Regards,
Ramya S
SIGN IN To post a reply.
- 6 Replies
- 4 Participants
- Marked answer
-
CY Cyrille
- Jan 3, 2021 10:08 PM UTC
- Jan 18, 2021 09:23 AM UTC