[cairo] problems to downscale and center an image
Behdad Esfahbod
behdad at behdad.org
Mon Dec 4 15:37:30 PST 2006
On Mon, 2006-12-04 at 19:35 -0300, Claudio Saavedra wrote:
> Thanks. That indeed fixes the aliasing problem, but then I get the
> image
> tiled on the page instead of only centered. See here[1] for a lowres
> of
> the result.
Try CAIRO_EXTEND_NONE.
Another solution is to use cairo_rectangle() and cairo_fill().
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo
mailing list