I want to add a small, kind of fading out watermark image to all my images.
is there a way to do this in c#?
Press and hold down the ALT key, then type the numbers 0169 on your number keypad. Release ALT, and the copyright symbol should appear. Add text to the copyright symbol if you want the copyright watermark to include more information.
You can compose images using System.Drawing
//1. create a bitmap (create a empty one or from file)
Bitmap bmpPic = new Bitmap(imgWidth,imgHeight);
//2. pass that bitmap into Graphics
using (Graphics g = Graphics.FromImage(bmpPic))
{
//manipulate the image
}
//3. save the bitmap back to a filestream
bmpPic.Save(imgFileStream,ImageFormat.Png);
Just make sure to dispose all resources used as System.Drawing uses unmanaged GDI+ resources
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With