silvaren / easyrs

Convenience RenderScript tools for processing common Android formats such as Bitmap and NV21.
MIT License
155 stars 25 forks source link

Opacity? #7

Open jeetdholakia opened 6 years ago

jeetdholakia commented 6 years ago

Is there a way to set opacity on either LUT or 3D LUT? The Android docs do not have an alpha channel in 3D LUT but they do for LUT...

silvaren commented 6 years ago

Hi @jeetdholakia ! Yes they should work with alpha channels, check https://github.com/silvaren/easyrs/blob/master/easyrs/src/main/java/io/github/silvaren/easyrs/tools/params/SampleParams.java for an example on how to build the LUTs to use with the library.

jeetdholakia commented 6 years ago

Yes, I tried using the opacity parameter but the more opacity I used, the whiter it made the image. What I was hoping for is a result similar to choosing filter strength in photo editing apps, but I guess the Android SDK does not work like that. Any guesses?