[cairo] Downing scaling images

Ross Alexander Ross.Alexander at EU.NEC.COM
Tue Dec 14 10:25:37 PST 2010


The best down scaler I have come across gdk-pixbuf with GDK_INTERP_HYPER.  Both the cairo scaler and gegl only do bilinear scaling.

  gdk_pixbuf_scale(px, spx, 0, 0, width_new, height_new, 0.0, 0.0, scale, scale, GDK_INTERP_HYPER);

I have a test C program comparing the three methods.

Ross


More information about the cairo mailing list