Commit 3c8e92cf authored by Emmanuele Bassi's avatar Emmanuele Bassi 👣

Merge branch 'issue-3' into 'master'

Deprecate GDK_INTERP_HYPER

Closes #3

See merge request GNOME/gdk-pixbuf!3
parents dfbddaa4 78fcdfc8
......@@ -56,17 +56,18 @@ G_BEGIN_DECLS
* Wolberg's "Digital Image Warping", and is formally defined as the
* hyperbolic-filter sampling the ideal hyperbolic-filter interpolated
* image (the filter is designed to be idempotent for 1:1 pixel mapping).
* **Deprecated**: this interpolation filter is deprecated, as in reality
* it has a lower quality than the @GDK_INTERP_BILINEAR filter
* (Since: 2.38)
*
* This enumeration describes the different interpolation modes that
* can be used with the scaling functions. @GDK_INTERP_NEAREST is
* the fastest scaling method, but has horrible quality when
* scaling down. @GDK_INTERP_BILINEAR is the best choice if you
* aren't sure what to choose, it has a good speed/quality balance.
* This enumeration describes the different interpolation modes that
* can be used with the scaling functions. @GDK_INTERP_NEAREST is
* the fastest scaling method, but has horrible quality when
* scaling down. @GDK_INTERP_BILINEAR is the best choice if you
* aren't sure what to choose, it has a good speed/quality balance.
*
* <note>
* Cubic filtering is missing from the list; hyperbolic
* interpolation is just as fast and results in higher quality.
* </note>
* **Note**: Cubic filtering is missing from the list; hyperbolic
* interpolation is just as fast and results in higher quality.
*/
typedef enum {
GDK_INTERP_NEAREST,
......
......@@ -301,7 +301,7 @@ int main (int argc, char **argv)
scaled = gdk_pixbuf_scale_simple (pixbuf,
floor (width * scale + 0.5),
floor (height * scale + 0.5),
GDK_INTERP_HYPER);
GDK_INTERP_BILINEAR);
#endif
gdk_pixbuf_copy_options (pixbuf, scaled);
g_object_unref (pixbuf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment