FigBug / Gin

A few extras for juce
BSD 3-Clause "New" or "Revised" License
262 stars 40 forks source link

applyBrightnessContrast changes alpha values? #5

Closed reFX-Mike closed 5 years ago

reFX-Mike commented 5 years ago

Changing the brightness affects completely invisible pixels whose alpha values are 0. When used on an image like that, and lowering the brightness, the invisible pixels become visibly darker.

It seems almost as if the alpha values are darkened too.

Note: this function interprets the input value for contrast correctly, so positive values increase contrast, negative values decrease it.

FigBug commented 5 years ago

Not sure what is happening here, I'm definitely not touching the alpha value.