how to add watermark text in the image using C#



how to add watermark text in the image using C#

how to add watermark text in the image using C#

My fiverr link: https://www.fiverr.com/hamzakhalid178
Download from this link :
https://github.com/hamza3344/watermarktext/blob/main/watermark.zip
contact me on [email protected] for custom software’s.
Please share and like the video and subscribe the channel
If any question comment below

code:

Image bitmap = Bitmap.FromFile(“image.png”);
Graphics g=Graphics.FromImage(bitmap);
Color stringcolor=Color.FromArgb(90,0,0,0);//first one is for opacity from 0 to 255 and other three is r g b value of color
string text = “My watermark”;
g.TranslateTransform(100,50);//first value is for x amd other one is y
g.RotateTransform(30);
g.DrawString(text, new Font(“Arail”, 60, FontStyle.Regular), new SolidBrush(stringcolor), new Point(0, 0));
bitmap.Save(“watermarkimage.png”);
pictureBox1.Image=new Bitmap(“watermarkimage.png”);

#csharp #csharpdevelopers #csharpdotnet #csharpprogramming #csharptutorial #csharptutorial #watermark #watermarktext #watermarkincsharp