-
Notifications
You must be signed in to change notification settings - Fork 476
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
@curve with @adjust not working #455
Comments
Some filters' intensity just can not be changed by now. |
thanks @wysaid. Issue solved by implementing setIntensity in CGEMoreCurveTexFilter with changing fragment shader. |
Now, The new problem arrives with multiple filter. filter at index 0 = @Curve R(0, 0)(117, 95)(155, 171)(179, 225)(255, 255)G(0, 0)(94, 66)(155, 176)(255, 255)B(0, 0)(48, 59)(141, 130)(255, 224) |
👍 |
Sure, you should write some function to manage your filter in |
Yah, but where i can replace already added curve filter string to new curve filter string. |
@wysaid i tried but no result, do you have some reference where i can replace new filter with the already |
@wysaid hi, i just modified some BasicImageDemoActivity.java filter and add @Curve filter t at 0 index then run program, i fond that @Curve filter is not working with @adjust.
`
protected static final String BASIC_FILTER_CONFIG = "@Curve R(0, 0)(117, 95)(155, 171)(179, 225)(255, 255)G(0, 0)(94, 66)(155, 176)(255, 255)B(0, 0)(48, 59)(141, 130)(255, 224) @adjust brightness 0 @adjust contrast 1 @adjust saturation 1 @adjust sharpen 0";
protected static final String[] BASIC_FILTER_NAMES = {
"curve",
"brightness",
"contrast",
"saturation",
"sharpen"
};
AdjustConfig[] mAdjustConfigs = {
new AdjustConfig(0, 0.0f, 0.0f, 1.0f), //curve
new AdjustConfig(1, -1.0f, 0.0f, 1.0f), //brightness
new AdjustConfig(2, 0.1f, 1.0f, 3.0f), //contrast
new AdjustConfig(3, 0.0f, 1.0f, 3.0f), //saturation
new AdjustConfig(4, -1.0f, 0.0f, 10.0f) //sharpen
};
`
The text was updated successfully, but these errors were encountered: