public static void AddWatermark(string imageFilePath, string waterMarkImagePath) { //add watermark if needed if (!string.IsNullOrEmpty(waterMarkImagePath)) { var output = new ImgWaterMark(imageFilePath, waterMarkImagePath, true); output.AddWaterMark(); Utils.SaveFile(imageFilePath, BmpToBytesMemStream(output.Image)); } }
public static void AddToCanvas(string imageFilePath, string canvasImagePath) { //add watermark if needed if (!string.IsNullOrEmpty(canvasImagePath)) { var output = new ImgWaterMark(canvasImagePath, imageFilePath, false); output.AddWaterMark(); Utils.SaveFile(imageFilePath, BmpToBytesMemStream(output.Image)); } }