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

Free Support Forum - aspose.com

How do you add a transparent image watermark to an image?


How do you add a transparent image watermark to an image?

I have found documentation on how to add a transparent text watermark to an image but not a transparent watermark image to an image.

Adding a Watermark to an Image|Documentation (aspose.com)

Can you point me in the right direction, please?

@djsomers, you can draw image on image using Graphics.DrawImage. https://docs.aspose.com/imaging/net/drawing-images-using-graphics/
Please note, that your image and watermark image should support transparency, for example transparency supports PNG.

// load an existing PNG with Image.Load
using (var image = Aspose.Imaging.Image.Load(@"template.png"))
    // create and initialize an instance of Graphics class and Initialize an object of SizeF to store image Size
   var graphics = new Aspose.Imaging.Graphics(image);
   using (Image watermarkImage = Image.Load("watermark.png"))

   image.Save("result.png", new PngOptions(){ColorType = PngColorType.TruecolorWithAlpha});