[cairo] 1.9.8: problem with direct access to image surface data

Oscar Lazzarino oscar.lazzarino at i-m3d.com
Tue Jun 15 09:26:25 PDT 2010


On 06/15/2010 06:22 PM, cu wrote:
> Dear all,
>
>   As of 1.9.8 it appears that simply setting image surface data does not
> work anymore. I.e. if I use cairo_image_surface_get_data() on BGRA
> surface, then set the data bytes directly, then attempt to create a
> pattern from this surface and use it as a fill elsewhere - the surface
> is treated as "empty", resulting in nothing being drawn.

cairo_surface_mark_dirty() may be what you need.

See 
http://cairographics.org/manual/cairo-surface.html#cairo-surface-mark-dirty

O.


More information about the cairo mailing list