Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 676 Bytes

Watermark.md

File metadata and controls

22 lines (16 loc) · 676 Bytes

Watermark

// Read image that needs a watermark
using var image = new MagickImage(SampleFiles.FujiFilmFinePixS1ProJpg);

// Read the watermark that will be put on top of the image
using var watermark = new MagickImage(SampleFiles.SnakewarePng);

// Draw the watermark in the bottom right corner
image.Composite(watermark, Gravity.Southeast, CompositeOperator.Over);

// Optionally make the watermark more transparent
watermark.Evaluate(Channels.Alpha, EvaluateOperator.Divide, 4);

// Or draw the watermark at a specific location
image.Composite(watermark, 200, 50, CompositeOperator.Over);

// Save the result
image.Write("FujiFilmFinePixS1Pro.watermark.jpg");
}