1 /* 2 NSBitmapImageRep+PNG.h 3 4 Methods for loading .png images. 5 6 Copyright (C) 2003 Free Software Foundation, Inc. 7 8 Written by: Alexander Malmberg <alexander@malmberg.org> 9 Date: 2003-12-07 10 11 This file is part of the GNUstep GUI Library. 12 13 This library is free software; you can redistribute it and/or 14 modify it under the terms of the GNU Lesser General Public 15 License as published by the Free Software Foundation; either 16 version 2 of the License, or (at your option) any later version. 17 18 This library is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 Lesser General Public License for more details. 22 23 You should have received a copy of the GNU Lesser General Public 24 License along with this library; see the file COPYING.LIB. 25 If not, see <http://www.gnu.org/licenses/> or write to the 26 Free Software Foundation, 51 Franklin Street, Fifth Floor, 27 Boston, MA 02110-1301, USA. 28 */ 29 30 #ifndef _NSBitmapImageRep_PNG_H_include 31 #define _NSBitmapImageRep_PNG_H_include 32 33 #import "AppKit/NSBitmapImageRep.h" 34 35 @interface NSBitmapImageRep (PNG) 36 + (BOOL) _bitmapIsPNG: (NSData *)imageData; 37 - (id) _initBitmapFromPNG: (NSData *)imageData; 38 - (NSData *) _PNGRepresentationWithProperties: (NSDictionary *) properties; 39 @end 40 41 #endif 42