【ImageMagick】增加水印
程序员文章站
2022-07-13 14:10:42
...
using (var image = new ImageMagick.MagickImage(ofg.FileName))
{
var draw = new ImageMagick.Drawables();
draw.FontPointSize(60);
draw.Font("宋体");
draw.FillColor(ImageMagick.MagickColors.Orange);
draw.TextAlignment(ImageMagick.TextAlignment.Left);
draw.Text(100, 100, "Image\nMagick.NET");
draw.Draw(image);
this.pictureBox1.Image = image.ToBitmap();
}