Skip to content
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

Determine if source image has alpha channel #8

Open
lehitoskin opened this issue Oct 3, 2016 · 4 comments
Open

Determine if source image has alpha channel #8

lehitoskin opened this issue Oct 3, 2016 · 4 comments

Comments

@lehitoskin
Copy link
Contributor

The procedure (send a-bitmap has-alpha-channel?) led me to believe that it would report whether the loaded image has an alpha channel, but apparently it only says whether the bitmap has been created with an alpha channel or not. I would like to request a feature that determines whether a source image has an alpha channel.

I was told that 'unknown/mask would only produce a mask if the source image had an alpha channel, but that is not the case - 'unknown/mask always produces a mask, it's just the mask will be completely black if there is no alpha.

@spdegabrielle
Copy link
Member

is this still an issue? Please consider adding the label good first issue so it is findable:

Issues labeled good first issue in in Racket GitHub repositories

@lehitoskin
Copy link
Contributor Author

(send a-bitmap has-alpha-channel?) still only determines if the generated bitmap object was created with an alpha channel through make-bitmap or read-bitmap with any */alpha, not that the image itself has an alpha channel.

@spdegabrielle
Copy link
Member

spdegabrielle commented Jun 19, 2020

If you has some support would you have a go at resolving this yourself?

I think gif.rkt is the relevant code.

https://docs.racket-lang.org/draw/bitmap_.html#%28constructor._%28%28lib._racket%2Fdraw..rkt%29._bitmap~25%29%29

@spdegabrielle
Copy link
Member

@lehitoskin was my response above helpful? Please let me know. Kind regards, Stephen

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

No branches or pull requests

2 participants