1 /* 2 Project: Graphos 3 GRImage.h 4 5 Copyright (C) 2015 GNUstep Application Project 6 7 Author: Ing. Riccardo Mottola 8 9 Created: 2015-01-16 10 11 This application is free software; you can redistribute it and/or 12 modify it under the terms of the GNU General Public 13 License as published by the Free Software Foundation; either 14 version 2 of the License, or (at your option) any later version. 15 16 This application is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 Library General Public License for more details. 20 21 You should have received a copy of the GNU General Public 22 License along with this library; if not, write to the Free 23 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 24 */ 25 26 27 #import <Foundation/Foundation.h> 28 #import <AppKit/NSImage.h> 29 30 #import "GRBox.h" 31 32 @interface GRImage : GRBox 33 { 34 NSString *name; 35 NSImage *image; 36 NSSize originalSize; 37 float originalRatio; 38 } 39 40 - (NSImage *)image; 41 - (void)setImage:(NSImage *)img; 42 - (float)originalRatio; 43 44 @end 45