Пример #1
0
 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));
     }
 }
Пример #2
0
 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));
     }
 }