[cairo] Corruption with image surfaces

Alex Mac lots.of.mailing.lists at gmail.com
Wed Jan 24 04:27:00 PST 2007

On 24/01/07, Baz <brian.ewins at gmail.com> wrote:
> On 24/01/07, Alex Mac <lots.of.mailing.lists at gmail.com> wrote:
> > Maybe I'm abusing the api but can someone test out this program and
> > tell me if it looks ok? It just renders the attached svg file into an
> > image surface and then paints that onto the main cairo surface while
> > rotating it.
> >
> > for some reason I get odd artifacts, like cairo or pycairo is trying
> > to render from a bit of memory it shouldn't
> >
> Just wild-ass guessery here, but that svg doesn't fill its background,
> and nothing else paints the image surface anywhere I can see? I
> suspect its just uninitialized data in the image surface.
> -Baz

Image surfaces are meant to be initialized to black transparent aren't they?

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)

More information about the cairo mailing list