コード例 #1
0
 private void rectcolor_MouseDown(object sender, EventArgs e)
 {
     screenimage = InteropHelper.CaptureRegion(InteropHelper.GetDesktopWindow(),
                                               (int)SystemParameters.VirtualScreenLeft,
                                               (int)SystemParameters.VirtualScreenTop,
                                               (int)SystemParameters.PrimaryScreenWidth,
                                               (int)SystemParameters.PrimaryScreenHeight);
     backBrush = rectcolor.BackColor;
     if (paths.Count() > 0)
     {
         ResetCursorToDefault();
     }
     else
     {
         timer.Start();
         ineyedropmode = true;
         ChangeCursor();
     }
 }