]> git.itanic.dy.fi Git - maemo-mapper/blob - src/gdk-pixbuf-rotate.h
Administrative changes in preparation for release of Maemo Mapper v2.6.2.
[maemo-mapper] / src / gdk-pixbuf-rotate.h
1 /* GdkPixbuf library - image transformation using 2x2 arbitrary matrix
2  *
3  * Copyright (C) 1999 The Free Software Foundation
4  *
5  * Authors: Oleg Klimov <quif@land.ru>, John Costigan
6  *
7  * This file is part of Maemo Mapper.
8  *
9  * Maemo Mapper is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * Maemo Mapper is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with Maemo Mapper.  If not, see <http://www.gnu.org/licenses/>.
21  */
22
23 #ifndef GDK_PIXBUF_ROTATE_H
24 #define GDK_PIXBUF_ROTATE_H
25
26 #include "gdk-pixbuf/gdk-pixbuf.h"
27
28 G_BEGIN_DECLS
29
30
31 gfloat* gdk_pixbuf_rotate_matrix_new            (void);
32 void gdk_pixbuf_rotate_matrix_fill_for_rotation (gfloat*       matrix,
33                                                  gfloat        angle);
34 void gdk_pixbuf_rotate_matrix_mult_number       (gfloat*       matrix,
35                                                  gfloat        mult);
36 void gdk_pixbuf_rotate_matrix_mult_matrix       (gfloat*       dst_matrix,
37                                                  const gfloat* src1,
38                                                  const gfloat* src2);
39 gboolean gdk_pixbuf_rotate_matrix_reverse       (gfloat*       dest,
40                                                  const gfloat* src);
41 void gdk_pixbuf_rotate_matrix_transpose         (gfloat*       dest,
42                                                  const gfloat* src);
43 gfloat gdk_pixbuf_rotate_matrix_determinant     (const gfloat* matrix);
44
45
46 void gdk_pixbuf_rotate          (GdkPixbuf*    dst,
47                                  gfloat        dst_x,
48                                  gfloat        dst_y,
49                                  gfloat*       matrix,
50                                  GdkPixbuf*    src,
51                                  gfloat        src_center_x,
52                                  gfloat        src_center_y,
53                                  gfloat        src_width,
54                                  gfloat        src_height,
55                                  gint* result_rect_x,
56                                  gint* result_rect_y,
57                                  gint* result_rect_width,
58                                  gint* result_rect_height);
59 void gdk_pixbuf_rotate_vector   (gfloat*        dst_x,
60                                  gfloat*        dst_y,
61                                  const gfloat*  matrix,
62                                  gfloat         src_vector_x,
63                                  gfloat         src_vector_y);
64
65 G_END_DECLS
66
67 #endif /* GDK_PIXBUF_ROTATE_H */
68