-
1. Re: getting pixels of specific channel
Chris Cox Sep 17, 2011 11:25 PM (in response to fatysekDesign)For which type of plugin?
For filters, formats, and export you can use the standard API to request each channel at a time, or all channels interleaved together.
For some plugin types you can also use the channel port suite to do the same thing.
Have you tried looking at the example plugins to see how they work, and to find one similar to what you are trying to do?
-
2. Re: getting pixels of specific channel
fatysekDesign Sep 18, 2011 3:05 AM (in response to Chris Cox)Filter Plugin.
I found the code samples in PoorMansTypeTool
gPSChannelPortsSuite->ReadPixelsFromLevel and gPSChannelPortsSuite->WritePixelsToBaseLevel , i try this:)
-
3. Re: getting pixels of specific channel
Chris Cox Sep 18, 2011 11:52 AM (in response to fatysekDesign)A filter could just use the AdvanceState calls as usual.
And if you want to convert RGB To XYZ, you'll need all 3 channels at once, not separately.
-
4. Re: getting pixels of specific channel
fatysekDesign Sep 18, 2011 1:09 PM (in response to Chris Cox)so how i can change pixels in 3 channels at once?
-
5. Re: getting pixels of specific channel
Chris Cox Sep 19, 2011 12:35 AM (in response to fatysekDesign)Just request all 3 at once, then write back all 3 at once.
With advance state and channel ports, you can read and write separately.
-
6. Re: getting pixels of specific channel
fatysekDesign Sep 19, 2011 4:36 AM (in response to Chris Cox)ok thanku you, I'll try and I will know whether it worked


