blob: 3771790f9b596e4851228b1e5c6d728751eccf0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef __IMAGE_H
#define __IMAGE_H
#include <gtk-3.0/gtk/gtk.h>
#define ZOOM_FACTOR 0.1
enum scale_mode {
fit = 0,
zoomed = 1,
} curr_scale_mod;
GtkWidget *image;
GdkPixbuf *pixbuf;
GdkPixbuf *curr_pixbuf;
int pixbuf_width, pixbuf_height, curr_pixbuf_width, curr_pixbuf_height;
double aspect_ratio;
double curr_zoom;
GtkWidget *new_image();
int load_image(char *file_name, int win_width, int win_height);
void fit_image(int win_width, int win_height);
void zoom(int type);
void print_supported_formats();
#endif
|