[cairo] Fwd: Error with clipping when not antialiasing
Kristof Van Landschoot
kristof at coin-c.com
Mon May 5 00:49:14 PDT 2008
Maybe this mail was overlooked on the list? Can somebody shed some light on
---------- Forwarded message ----------
From: Kristof Van Landschoot <kristof at coin-c.com>
Date: Mon, Apr 28, 2008 at 11:55 AM
Subject: Error with clipping when not antialiasing
To: cairo at cairographics.org
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