コード例 #1
0
ファイル: Form1.cs プロジェクト: NoiseControllers/PUBG_TRIGGR
 /// <summary>
 /// Select White Kill Counter on Top Rectangle
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnWhiteKillCounter_Click(object sender, EventArgs e)
 {
     using (var form = new ScreenGrabForm())
     {
         form.Visible = false;
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             rectTopKillNumber           = form.SelectedRectangle;
             pBKillCounterTopRight.Image = gcaptr.MakeScreenShot(rectTopKillNumber);
         }
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: NoiseControllers/PUBG_TRIGGR
 /// <summary>
 /// Select red "KILL"
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnSelRedKill_Click(object sender, EventArgs e)
 {
     using (var form = new ScreenGrabForm())
     {
         form.Visible = false;
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             rectCenterKill  = form.SelectedRectangle;
             pBRedKill.Image = gcaptr.MakeScreenShot(rectCenterKill);
         }
     }
 }