Adding an Image watermark to an Image

Hey,

I can’t see anything in the documentation about being able to do this, but is this functionality available for Aspose for .NET? We have already implemented a number of other watermarking functions but we can’t see one for adding an Image watermark to an Image file.

Thanks,

Charlie

Hello, @charlie.lancaster,
Let me process your request. You will be replied shortly.

Hello again,
Here is a code example showing how to stamp an image watermark to an other image:

using var image = Image.Load("input-image");
StampWatermark(image);
image.Save("output-image");

static void StampWatermark(Image image)
{
    const string WatermarkPath = "watermark";
    using var watermark = Image.Load(WatermarkPath);
                
    var g = new Graphics(image);
    g.DrawImage(watermark, 0, 0);
}