[cairo] Error with clipping when not antialiasing
Kristof Van Landschoot
kristof at coin-c.com
Mon Apr 28 02:55:10 PDT 2008
I've isolated what I think must be a bug in cairo with antialiasing. In
this snippet of code I set an initial matrix, apply a clipping path, set a
new matrix and then draw a rectangle. This rectangle is clipped away
entirely, however **only** when antialiasing is set to
CAIRO_ANTIALIAS_NONE. If you comment out the line of code setting the
antialiasing the rectangle is (correctly) not clipped away.
This is using version 1.6.4 of cairo.
cairo_surface_t *lSurface =
unsigned char *lBuffer = cairo_image_surface_get_data(lSurface);
cairo_t *lStatus = cairo_create(lSurface);
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo