public override void Prepare() { base.Prepare(); if (Config != null) { AreaManager.WindowCaptureMode |= Config.ForceWindowCapture; AreaManager.IncludeControls |= Config.IncludeControls; if (OneClickMode || AreaManager.WindowCaptureMode) { IntPtr handle = Handle; TaskEx.Run(() => { WindowsRectangleList wla = new WindowsRectangleList(); wla.IgnoreHandle = handle; wla.IncludeChildWindows = AreaManager.IncludeControls; AreaManager.Windows = wla.GetWindowsRectangleList(); }); } } if (Config.UseCustomInfoText || ScreenColorPickerMode) { bmpSurfaceImage = new Bitmap(SurfaceImage); } }
public override void Prepare() { base.Prepare(); if (Config != null) { AreaManager.WindowCaptureMode |= Config.ForceWindowCapture; AreaManager.IncludeControls |= Config.IncludeControls; if (AreaManager.WindowCaptureMode) { IntPtr handle = Handle; TaskEx.Run(() => { WindowsRectangleList wla = new WindowsRectangleList(); wla.IgnoreHandle = handle; wla.IncludeChildWindows = AreaManager.IncludeControls; AreaManager.Windows = wla.GetWindowsRectangleList(); }); } } }