[cairo] nearest neighborhood or bilinear interpolation

Jeff Muizelaar jeff at infidigm.net
Fri Oct 27 22:58:10 PDT 2006


On Fri, Oct 27, 2006 at 08:45:13PM -0200, Carlos Eduardo Rodrigues Diógenes wrote:
> Hi,
> 
> It's possible to select what cairo will use when making scale
> transformations in imagens (nearest neighborhood or bilinear
> interpolation)?

Yes.

Have a look at the poorly documented cairo_pattern_set_filter().

http://www.cairographics.org/manual/cairo-Patterns.html#cairo-pattern-set-filter

-Jeff


More information about the cairo mailing list