app: s/sprintf/g_snprintf/ in xcf_save_image()
[gimp.git] / libgimpcolor / gimpadaptivesupersample.h
blobfdee486f8594d283bd3ea720f42fb950c4a436cb
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_ADAPTIVE_SUPERSAMPLE_H__
24 #define __GIMP_ADAPTIVE_SUPERSAMPLE_H__
26 G_BEGIN_DECLS
28 /* For information look into the C source or the html documentation */
31 /* adaptive supersampling function taken from LibGCK */
34 gulong gimp_adaptive_supersample_area (gint x1,
35 gint y1,
36 gint x2,
37 gint y2,
38 gint max_depth,
39 gdouble threshold,
40 GimpRenderFunc render_func,
41 gpointer render_data,
42 GimpPutPixelFunc put_pixel_func,
43 gpointer put_pixel_data,
44 GimpProgressFunc progress_func,
45 gpointer progress_data);
48 G_END_DECLS
50 #endif /* __GIMP_ADAPTIVE_SUPERSAMPLE_H__ */