elements icon indicating copy to clipboard operation
elements copied to clipboard

How to display a bitmap object?

Open bredej opened this issue 1 year ago • 1 comments

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.

bredej avatar Dec 06 '24 21:12 bredej

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.

djowel avatar Dec 06 '24 23:12 djowel