We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

[Help] Add text to image

Hi, i want to add a text to image like this
(and make curve text like pic 2)

aa.jpg (13.3 KB)
bb.jpg (34.7 KB)

anyone can help me, thanks!
sorry my English not good


You can add text watermark to any image. Please take a look at this output.jpg (10.0 KB) for instance. All you have to do is to follow this .NET or Java documentation guide (based on your development platform) or the following (.NET) code:

//C# code
using (Watermarker watermarker = new Watermarker(@"D:/aa.jpg"))
       // Initialize the font to be used for watermark
       Font font = new Font("Arial", 20, FontStyle.Bold); 
       // Create the watermark object
       TextWatermark watermark = new TextWatermark("Watermark", font); 
       // Set watermark properties
       watermark.ForegroundColor = Color.White;
       watermark.BackgroundColor = Color.Transparent;
       watermark.TextAlignment = TextAlignment.Justify; 
       watermark.VerticalAlignment = VerticalAlignment.Center; 
       watermark.X = 90;
       watermark.Y = -180;
       // Add watermark

You can also download the sample .NET or Java application.

1 Like

thank you so much!


You are welcome.

1 Like