Re: Color picker question
Re: Color picker question
- Subject: Re: Color picker question
- From: Dmitry Lavrov <email@hidden>
- Date: Thu, 8 Jun 2017 20:44:34 +0100
You want picker to return values in the correct colour space e.g. input image.
Grabbing values from input texture / bitmap in renderOutput:withInput:withInfo:
works for me. You need OSC plugin to let user choose position to pick and then
convert display to image coordinates as you’ve said. Latest API allows to set
custom
cursor which is a bonus.
Best Regards,
Dmitry
> Date: Wed, 7 Jun 2017 22:12:42 -0700
> From: Dave Howell
> To: email@hidden
> Subject: Color picker question
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=utf-8
>
> 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