1 //
2 //  PRTransforms.h
3 //  PRICE
4 //
5 //  Created by Riccardo Mottola on Mon Dec 23 2002.
6 //  Copyright (c) 2002-2008 Carduus. All rights reserved.
7 //
8 // This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
10 
11 #define TRANSPOSE  1
12 #define ROTATE90   2
13 #define ROTATE180  3
14 #define ROTATE270  4
15 #define FLIP_VERT  5
16 #define FLIP_HORIZ 6
17 
18 #import <AppKit/AppKit.h>
19 #import "PRImage.h"
20 #import "PRFilter.h"
21 
22 
23 @interface PRTransforms : PRFilter
24 {
25     NSString *actionName;
26 }
27 
28 - (void)setActionName:(NSString *)name;
29 
30 - (PRImage *)transposeImage:(PRImage *)srcImage;
31 - (PRImage *)rotateImage90:(PRImage *)srcImage;
32 - (PRImage *)rotateImage180:(PRImage *)srcImage;
33 - (PRImage *)rotateImage270:(PRImage *)srcImage;
34 - (PRImage *)flipImageVert:(PRImage *)srcImage;
35 - (PRImage *)flipImageHoriz:(PRImage *)srcImage;
36 
37 @end
38