[cairo] Smoother Scaling
psychon at znc.in
Mon Dec 13 10:35:56 PST 2010
Am 13.12.2010 19:12, Tim Corio wrote:
> I'm scaling an image. The result looks grainy and there are
> unacceptable artifacts in fine parallel lines making the output look
> more like a tight hatch pattern.
> I've tried using cairo_pattern_set_filter in the snippet below. I've
> used all the filters and see no difference in the output image.
> cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_BEST);
Try setting the filter on cairo_get_target (cr) or outImage->surface.
- Buck, when, exactly, did you lose your mind?
- Three months ago. I woke up one morning married to a pineapple.
An ugly pineapple... But I loved her
More information about the cairo