1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 3 /* 4 * GThumb 5 * 6 * Copyright (C) 2014 The Free Software Foundation, Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef CAIRO_EFFECTS_H 23 #define CAIRO_EFFECTS_H 24 25 #include <glib.h> 26 #include <cairo.h> 27 #include <gthumb.h> 28 #include "gth-curve.h" 29 30 G_BEGIN_DECLS 31 32 gboolean cairo_image_surface_apply_curves (cairo_surface_t *source, 33 GthCurve **curve, 34 GthAsyncTask *task); 35 gboolean cairo_image_surface_apply_vignette (cairo_surface_t *source, 36 GthCurve **curve, 37 guchar vignette_alpha, 38 GthAsyncTask *task); 39 gboolean cairo_image_surface_apply_bcs (cairo_surface_t *source, 40 double brightness, 41 double contrast, 42 double saturation, 43 GthAsyncTask *task); 44 gboolean cairo_image_surface_colorize (cairo_surface_t *source, 45 guchar color_red, 46 guchar color_green, 47 guchar color_blue, 48 guchar color_alpha, 49 GthAsyncTask *task); 50 gboolean cairo_image_surface_add_color (cairo_surface_t *source, 51 guchar color_red, 52 guchar color_green, 53 guchar color_blue, 54 guchar color_alpha, 55 GthAsyncTask *task); 56 57 G_END_DECLS 58 59 #endif /* CAIRO_EFFECTS_H */ 60