Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Pixbuf::put_pixel doesn't behave correctly when alpha channel is disabled #59

Closed
cai-lw opened this issue Jan 29, 2018 · 0 comments
Closed

Comments

@cai-lw
Copy link
Contributor

cai-lw commented Jan 29, 2018

The current implementation always writes the alpha channel, no matter whether the alpha channel is enabled. When the alpha channel is disabled, the data will "leak" into adjacent pixels, and also cause an out-of-range error on the last pixel.
Simply don't write alpha when n_channels == 3 should solve the problem. #60

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant