Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed multi-monitor screen picking. (Builds not updated; fixes issue #1) #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ImmutableOctet
Copy link

This should fix issue #1. It's not the best approach, but it works.

Honestly, I don't exactly know why you're using the Windows API directly. Windows Forms already does half of what you're doing, and it's nicer. Not sure about mouse/keyboard button detection, though.

Whatever the case, I also cleaned up the 'ColorConverter' class. Not sure why it's not static, but now it has a debug-assert (Feel free to remove that), and it should check the number of color channels safely. That may still need to be tested, though. This also means you aren't allocating a bunch of bytes for no reason.

Neat little program, though. Not that this isn't a cool hobby project in its own right, but a cool alternative tool to checkout is ShareX, which has a color picker built in (Didn't actually know that before).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant