comparison src/histogram.h @ 273:e0e2c2b72c5a

reworked the histogram patch by Uwe Ohse, most of the code is in separate files
author nadvornik
date Tue, 08 Apr 2008 20:56:50 +0000
parents
children fd5c62403498
comparison
equal deleted inserted replaced
272:fbbb960a3857 273:e0e2c2b72c5a
1 /*
2 * Geeqie
3 *
4 * Author: Vladimir Nadvornik
5 * based on a patch by Uwe Ohse
6 *
7 * This software is released under the GNU General Public License (GNU GPL).
8 * Please read the included file COPYING for more information.
9 * This software comes with no warranty of any kind, use at your own risk!
10 */
11
12
13 /* Note: The order is important */
14 #define HCHAN_R 0
15 #define HCHAN_G 1
16 #define HCHAN_B 2
17 #define HCHAN_RGB 3
18 #define HCHAN_VAL 4
19 #define HCHAN_MAX 5
20 #define HCHAN_COUNT (HCHAN_MAX+1)
21
22
23 Histogram *histogram_new();
24 void histogram_free(Histogram *histogram);
25 gint histogram_set_channel(Histogram *histogram, gint chan);
26 gint histogram_get_channel(Histogram *histogram);
27 gint histogram_set_mode(Histogram *histogram, gint mode);
28 gint histogram_get_mode(Histogram *histogram);
29 const gchar *histogram_label(Histogram *histogram);
30 gulong histogram_read(Histogram *histogram, GdkPixbuf *imgpixbuf);
31 int histogram_draw(Histogram *histogram, GdkPixbuf *pixbuf, gint x, gint y, gint width, gint height);