You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I might be wrong, but it looks like there is no cairocffi way of using cairo-map-to-image, (unless this is the same as passing data to ImageSurface constructor?) - map-to-image and set-dirty and flush seem to be a way to get cairo to act on some existing data.
The text was updated successfully, but these errors were encountered:
Think I found some other info the other day, will need to keep looking .. think it's for making a cairo surface that just uses existing memory as opposed to just copying existing data in.
Ok, I see. This is the cairo_surface_map_to_image function. It does not have bindings in cairocffi yet. I’d review a pull request to add it. It would not be a lot of code, but it looks a bit tricky to get right as the returned surface needs to clean itself up with cairo_surface_unmap_image instead of cairo_surface_destroy.
I’m not sure when it is useful, but it does not look like it creates a surface from an existing memory buffer (that’s ImageSurface.create_for_data or passing data to the ImageSurface constructor) since it works with an existing surface.
I might be wrong, but it looks like there is no cairocffi way of using cairo-map-to-image, (unless this is the same as passing data to ImageSurface constructor?) - map-to-image and set-dirty and flush seem to be a way to get cairo to act on some existing data.
The text was updated successfully, but these errors were encountered: