public void MarkTest_Image()
 {
     using (Watermark watermark = new Watermark(Properties.Resources.Logo, 0.5F, 150, 60)) {
         watermark.Margin   = new Point(5, 5);
         watermark.Position = WatermarkPosition.RightBottom;
         using (Image image = watermark.Mark(Properties.Resources.Car)) {
             image.Save("MarkTest_Image.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
         }
     }
 }
 public void MarkTest_Text()
 {
     using (Watermark watermark = new Watermark("杜彭 www.xphter.com", SystemFonts.DefaultFont, Color.White, 1)) {
         watermark.Margin   = new Point(5, 5);
         watermark.Position = WatermarkPosition.LeftBottom;
         using (Image image = watermark.Mark(Properties.Resources.Car)) {
             image.Save("MarkTest_Text.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
         }
     }
 }
 public void MarkTest_FilePath()
 {
     Properties.Resources.Logo.Save("Logo.png", System.Drawing.Imaging.ImageFormat.Png);
     using (Watermark watermark = new Watermark("Logo.png", 1, 150, 60)) {
         watermark.Margin   = new Point(5, 5);
         watermark.Position = WatermarkPosition.Center;
         using (Image image = watermark.Mark(Properties.Resources.Car)) {
             image.Save("MarkTest_FilePath.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
         }
     }
 }