-
|
I'm building a project with this program, and noticed that when I give it a png with transparent pixels, they're read as black. That's a problem because I need the program to be able to distinguish transparent from black(white would be a no-go too). Is there a specific part of the header code that could be modified to replace transparent with some other arbitrary color? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
with what library? there are 20 in this repository. regardless, almost all of them support alpha channel. if you're using stb_image, read 4 channels and the fourth channel is alpha (opacity). |
Beta Was this translation helpful? Give feedback.
with what library? there are 20 in this repository.
regardless, almost all of them support alpha channel. if you're using stb_image, read 4 channels and the fourth channel is alpha (opacity).