elements
elements copied to clipboard
How to display a bitmap object?
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.
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.