[cairo] Downing scaling images
Ross Alexander
Ross.Alexander at EU.NEC.COM
Tue Dec 14 11:13:13 PST 2010
Here it is then.
Ross
-----Original Message-----
From: cairo-bounces+ross.alexander=eu.nec.com at cairographics.org [mailto:cairo-bounces+ross.alexander=eu.nec.com at cairographics.org] On Behalf Of Ross Alexander
Sent: 14 December 2010 18:26
To: cairo
Subject: [cairo] Downing scaling images
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
--
cairo mailing list
cairo at cairographics.org
http://lists.cairographics.org/mailman/listinfo/cairo
Click https://www.mailcontrol.com/sr/7ymB0P0u8unTndxI!oX7UhQ1x5oWB0K1uO+b8tP5saWedNZ6s6b8mL9BA4W64vLRmG!gA5Ow99Gl3fOT1a7RlQ== to report this email as spam.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: scale.c
URL: <http://lists.cairographics.org/archives/cairo/attachments/20101214/8315a1c6/attachment.c>
More information about the cairo
mailing list