app: s/sprintf/g_snprintf/ in xcf_save_image()
[gimp.git] / libgimpcolor / gimpbilinear.h
blobf32b34c9f6daadab4aef4283c72177f5431fd60a
1 /* LIBGIMP - The GIMP Library
2 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
4 * This library is free software: you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 3 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see
16 * <https://www.gnu.org/licenses/>.
19 #if !defined (__GIMP_COLOR_H_INSIDE__) && !defined (GIMP_COLOR_COMPILATION)
20 #error "Only <libgimpcolor/gimpcolor.h> can be included directly."
21 #endif
23 #ifndef __GIMP_BILINEAR_H__
24 #define __GIMP_BILINEAR_H__
26 G_BEGIN_DECLS
28 /* For information look into the C source or the html documentation */
31 /* bilinear interpolation functions taken from LibGCK */
34 gdouble gimp_bilinear (gdouble x,
35 gdouble y,
36 gdouble *values);
37 guchar gimp_bilinear_8 (gdouble x,
38 gdouble y,
39 guchar *values);
40 guint16 gimp_bilinear_16 (gdouble x,
41 gdouble y,
42 guint16 *values);
43 guint32 gimp_bilinear_32 (gdouble x,
44 gdouble y,
45 guint32 *values);
46 GimpRGB gimp_bilinear_rgb (gdouble x,
47 gdouble y,
48 GimpRGB *values);
49 GimpRGB gimp_bilinear_rgba (gdouble x,
50 gdouble y,
51 GimpRGB *values);
54 G_END_DECLS
56 #endif /* __GIMP_BILINEAR_H__ */