Color picker question
Color picker question
- Subject: Color picker question
- From: Dave Howell <email@hidden>
- Date: Wed, 7 Jun 2017 22:12:42 -0700
Hopefully everybody is at WWDC getting inspired about tvOS or something, and this will get a slow response.
Anyway, I have an FxPlug with a custom UI. It’s most beautiful.
The custom UI features an eye-dropper color-picker button. When you click it, I want to then let you go click on the canvas with an eyedropper to select a point, thereby selecting a color. Then I’ll use that color value for my own nefarious purposes.
The brute force implementation would be to just grab a color from the screen, using an image from the API CGDisplayCreateImage( CGMainDisplayID() ). I could do that, but then you might be selecting colors from a graphic overlay or something, and I won’t be doing a smart filtered sample from the full resolution of the movie.
Another approach would be implement a sort of dummy FxOnScreenControlAPI, so I can convert between screen coordinates and canvas coordinates, and then request the pixel values from some host API.
Any recommendations for how to implement a color picker? Should I just grab the pixel value from the screen, or is there a more elegant solution?
Cheers,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden