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

Alpha channel usage info #136

Open
ifiddynine opened this issue Jul 31, 2023 · 0 comments
Open

Alpha channel usage info #136

ifiddynine opened this issue Jul 31, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request question Further information is requested

Comments

@ifiddynine
Copy link

We have a use case where we'd like to find out whether the rasterized SVG would contain all opaque pixels, masked alpha (aka either 0 or 1) or standard transparency (a range between 0 or 1).

The only way I can see achieving it in lunasvg today is by rendering the full image and checking every pixel, but that would be pretty wasteful. Would it be practical exposing a function which could determine this information from the lunasvg::Document class?

@sammycage sammycage added documentation Improvements or additions to documentation enhancement New feature or request question Further information is requested labels Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants