-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RGB image created with “createImage()" has alpha channel. #388
Comments
Created by: benfry Hm, the alpha should be ignored. When I first tried your example I saw the weird behavior—nothing was drawn, and then using Though given that I can't reproduce it, I wonder if it's just a matter of nothing being drawn at all—i.e. the For what it's worth, in |
Created by: benfry I would also try with beta 4… |
Created by: ertdfgcvb Tested on beta 4 (macOS) with the same outcome.
|
Created by: benfry Thanks, that's a helpful test case. |
Created by: benfry Fixed for beta 6. This is a nasty one because it's partly a performance tradeoff—we could manually set all the pixels to be opaque, but that's a really expensive operation, and in most use cases, the pixels will already be opaque. But we have a better solution for it now. |
Created by: github-actions[bot] This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs. |
Created by: ertdfgcvb
Description
Images created with
createImage(w, h, RGB)
have an alpha channel.The alpha channel is filled with
0
once a single pixel is set.Expected Behavior
RGB images should be opaque (?).
Current Behavior
A newly created
RGB
image has all pixels in black but once a single pixel is changed trough theset()
method the alpha channel is zeroed out (?) for all other pixels.Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: