Eyedropper open source / colorpicker

Hi guys!
For a Standalone / Plug-in app made with Juce, we looking for an color EyeDropper. The built in Juce color picker does most of the job, but we really need an eyedropper as well in order to collect color information from any pixel on the screen (not just the plug-in GUI). Crossplatform and open source of course…

Any idea?
Thanks guys.

Here is my ‘off the top of my head’ solution:

  1. When the ‘color picker is activated’ execute Component::createComponentSnapshot() for the area for which you will be picking colors

  2. Capture the mouse events (either through mouse listeners or a transparent component overlay)

  3. Using the mouse position grab the pixel from the image created in step 1.

1 Like