[cairo] Corruption with image surfaces

Baz brian.ewins at gmail.com
Wed Jan 24 04:50:05 PST 2007


On 24/01/07, Alex Mac <lots.of.mailing.lists at gmail.com> wrote:
> Image surfaces are meant to be initialized to black transparent aren't they?

You're right - I was thinking of a case that came up on irc, where
uninitialized data got passed to cairo_image_surface_create_for_data
().

> anyway, inserting the following three lines before the svg file gets
> rendered still results in corruption, it just looks green :)
>
> tempcr.set_source_rgba(0.0, 1.0, 0.0, 1.0)
> tempcr.rectangle(-1, -1, 100, 100)
> tempcr.fill()


More information about the cairo mailing list