1 // 2 // PRScale.h 3 // PRICE 4 // 5 // Created by Riccardo Mottola on Wed Jan 19 2005. 6 // Copyright (c) 2005-2010 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 #import <AppKit/AppKit.h> 12 13 @interface PRCProgress : NSObject 14 { 15 IBOutlet NSWindow *progressPanel; 16 IBOutlet NSProgressIndicator *progressBar; 17 IBOutlet NSTextField *activityDescription; 18 } 19 20 - (IBAction)showProgress:(id)sender; 21 22 @end 23 24 25 #define NEAREST_NEIGHBOUR 1 26 #define BILINEAR 2 27 28 29 @interface PRScale : NSObject 30 { 31 } 32 33 - (NSImage *)scaleImage :(NSImage *)srcImage :(int)sizeX :(int)sizeY :(int)method :(PRCProgress *)prPanel; 34 35 @end 36