public static void ShowScreenColorPickerDialog(RegionCaptureOptions options) { Color color = Color.Red; ColorPickerForm colorPickerForm = new ColorPickerForm(color, true); colorPickerForm.EnableScreenColorPickerButton(() => GetPointInfo(options)); colorPickerForm.Show(); }
public static void ShowScreenColorPickerDialog(RegionCaptureOptions options, bool checkClipboard = true) { Color color = Color.Red; if (checkClipboard) { string text = ClipboardHelpers.GetText(true); if (!string.IsNullOrEmpty(text) && ColorHelpers.ParseColor(text, out Color clipboardColor)) { color = clipboardColor; } } ColorPickerForm colorPickerForm = new ColorPickerForm(color, true); colorPickerForm.EnableScreenColorPickerButton(() => GetPointInfo(options)); colorPickerForm.Show(); }