public static Bitmap DisplayMonitor(Screen monitor, bool includeCursor)
 {
     if (monitor != null)
     {
         return(SCapture.ScreenRectangle(monitor.Bounds, includeCursor));
     }
     throw new SCaptureException("The monitor cannot be Null (Nothing in VB).");
 }
        public static Bitmap Control(IntPtr handle, bool includeCursor)
        {
            if (!(handle != IntPtr.Zero))
            {
                throw new SCaptureException("Invalid control handle.");
            }

            if (!SCapture.UnsafeNativeMethods.GetWindowRect(handle, ref rect))
            {
                int lastWin32Error = Marshal.GetLastWin32Error();
                throw new SCaptureException(new Win32Exception(lastWin32Error).Message);
            }
            return(SCapture.ScreenRectangle(rect.ToRectangle(), includeCursor));
        }
 public static Bitmap FullScreen(bool includeCursor)
 {
     return(SCapture.ScreenRectangle(SystemInformation.VirtualScreen, includeCursor));
 }