You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is none right now, the method to do this it in the case 16bit -> 8bit is to perform a bit shift to keep only the high value bits : Data.Bits.shiftR c 8. For the Float case, it's even simpler it's floor . (256 *) . max 0 . min 1.
A pull request would be welcomed, and I think it could be implemented in term of pixelMap, reducing the cases. Your question clearly shows that the design of JuicyPixels is aging and would need a major refactoring :-/
I only find ways to promote pixels, or ways to drop alpha channels, but no way to reduce the bits-per-channel on a pixel.
If this does not exists can someone point my in the right direction for implementing this?
And would it be something to add to JuicyPixels? I mean: would a pull requests to JP with this functionality be welcomed?
The text was updated successfully, but these errors were encountered: