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

How to display a bitmap object? #433

Open
bredej opened this issue Dec 6, 2024 · 1 comment
Open

How to display a bitmap object? #433

bredej opened this issue Dec 6, 2024 · 1 comment

Comments

@bredej
Copy link

bredej commented Dec 6, 2024

The bitmap could for instance be received from a network connection or be the result of some image processing.
I don't see how I can update a pixmap surface from an in-memory object.

@djowel
Copy link
Member

djowel commented Dec 6, 2024

There is no option with the current cairo backend (although it is easy to add if you care to submit a PR). The artist port (skia_2024 branch) does have this option: https://github.com/cycfi/artist/blob/master/lib/include/artist/image.hpp#L112-L132

A PR would be great! Ideally, both branches should have the same API. Work in progress, but contributions are VERY welcome.

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