cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.31k stars 939 forks source link

ImageIo alpha issue #2307

Closed andrewfb closed 1 year ago

andrewfb commented 1 year ago

This fixes an issue in an atypical code path that would lead to an ImageTarget having an unmodified alpha channel if loading an ImageSource that has no alpha. The more expected behavior occurs now, which is that the alpha of the target is set to max() e.g. 255 for an 8bit image.