闂佽 鍋撻柟顖滃椤ワ拷 (0) +1 闁荤姍宥嗗 (0) +1 闂傚⿴浜烽幏锟� (0) +1
闂佽 鍋撻柟顖滃椤ユ垿鏌熺€涙ê濮囧┑顕嗘嫹闂佸搫琚崕鍐诧耿閸涙潙缁╅柟顖滃椤ワ拷>>

正在阅读:用.net实现按透明度生成水印文件用.net实现按透明度生成水印文件

2004-09-22 10:16 出处:CSDN 作者:zhgroup 责任编辑:linjixiong


  this.btn_Water,
  this.button2,
  this.btn_Browser,
  this.groupBox1,
  this.groupBox2,
  this.label2});
  this.Name = "Form1";
  this.Text = "Form1";
  this.groupBox1.ResumeLayout(false);
  this.groupBox2.ResumeLayout(false);
  this.groupBox3.ResumeLayout(false);
  this.ResumeLayout(false);

  }
  #endregion

  /// <summary>
  /// 应用程序的主入口点。
  /// </summary>
  [STAThread]
  static void Main()
  {
  Application.Run(new Form1());
  }
  
  private void btn_Browser_Click(object sender, System.EventArgs e)
  {
  using(OpenFileDialog dlg = new OpenFileDialog())
  {
  if(dlg.ShowDialog() == DialogResult.OK)
  {
  string file = dlg.FileName;
  if(File.Exists(file))
  {     
  this.SourceFile = file;
  imgSource.Image = new Bitmap(file);
  }
  }
  dlg.Dispose();
  }
  }

  private void button2_Click(object sender, System.EventArgs e)
  {
  string wf = @"E:\Test.jpg";
  this.SaveFile = wf;
  int local = (int)(this.local.SelectedValue);
  int al = 80;
  try
  {
  al = Int32.Parse(this.alpha.Text.Trim());
  }
  catch
  {
  }
  if(MakeWaterImage(this.SourceFile,this.WaterFile,this.SaveFile,local,al))
  {
  this.imgObject.Image = new Bitmap(this.SaveFile);
  } 
  
  }

 

察看评论详细内容 我要发表评论
作者笔名 简短内容 发表时间
:

键盘也能翻页,试试“← →”键

关注我们

最新资讯离线随时看 聊天吐槽赢奖品
闂佸綊娼ч鍡椻攦閳ь剟鎮规担鍛婂仴婵☆偓鎷�闂佹悶鍎抽崑娑㈠春鐏炰勘浜滈柛顐f礀閸旓拷