1 /* Eye Of Gnome - Thumbnailing functions
2  *
3  * Copyright (C) 2000-2007 The Free Software Foundation
4  *
5  * Author: Lucas Rocha <lucasr@gnome.org>
6  *
7  * Based on nautilus code (libnautilus-private/nautilus-thumbnail.c) by:
8  * 	- Andy Hertzfeld <andy@eazel.com>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License along
21  * with this program; if not, write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
23  */
24 
25 #ifndef _EOG_THUMBNAIL_H_
26 #define _EOG_THUMBNAIL_H_
27 
28 #include <gdk-pixbuf/gdk-pixbuf.h>
29 #include "eog-image.h"
30 
31 G_BEGIN_DECLS
32 
33 void          eog_thumbnail_init        (void);
34 
35 GdkPixbuf*    eog_thumbnail_fit_to_size (GdkPixbuf *thumbnail,
36 					 gint        dimension);
37 
38 GdkPixbuf*    eog_thumbnail_add_frame   (GdkPixbuf *thumbnail);
39 
40 GdkPixbuf*    eog_thumbnail_load        (EogImage *image,
41 					 GError **error);
42 
43 #define EOG_THUMBNAIL_ORIGINAL_WIDTH  "eog-thumbnail-orig-width"
44 #define EOG_THUMBNAIL_ORIGINAL_HEIGHT "eog-thumbnail-orig-height"
45 
46 G_END_DECLS
47 
48 #endif /* _EOG_THUMBNAIL_H_ */
49