00001 /********************************************************************** 00002 ** Copyright (C) 2003 Michael 'Mickey' Lauer. All rights reserved. 00003 ** 00004 ** This file is part of Opie Environment. 00005 ** 00006 ** This file may be distributed and/or modified under the terms of the 00007 ** GNU General Public License version 2 as published by the Free Software 00008 ** Foundation and appearing in the file LICENSE.GPL included in the 00009 ** packaging of this file. 00010 ** 00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00013 ** 00014 **********************************************************************/ 00015 00016 #ifndef IMAGEIO_H 00017 #define IMAGEIO_H 00018 00019 #include <qstring.h> 00020 00021 class QImage; 00022 00023 void bufferToImage( int _width, int height, unsigned char* bp, QImage* image ); 00024 void imageToFile( QImage* i, const QString& name, const QString& format, int quality ); 00025 00026 #endif
1.4.2