public FrmShotSnap() { InitializeComponent(); DialogResult = DialogResult.Cancel; scsDomain = new ScSCutDomain(); this.BackgroundImage = scsDomain.ShotCut(); this.Update(); }
private void MskUctrol_MouseMove(object sender, MouseEventArgs e) { if (isRecord) { pend = e.Location; BackgroundImage = ScSCutDomain.CreatSelectArea(Width, Height, pbegin, pend); Update(); } }
private void button2_Click(object sender, EventArgs e) { scl = scl * 0.5F; var nimg = ScSCutDomain.ScaledImage(Resources.aat2017731_00001, scl);; pictureBox1.Width = nimg.Width; pictureBox1.Height = nimg.Height; pictureBox1.Image = nimg; //this.tabControl1.TabPages.Add() //TabPage tp = new TabPage() }