iRawImage.h
Go to the documentation of this file.
00001 /*
00002 imagen - Simple object-oriented imaging library
00003 Copyright (C) 2011-2012 Mark D. Procarione
00004 
00005 imagen is free software: you can redistribute it and/or
00006 modify it under the terms of the GNU Lesser General Public
00007 License as published by the Free Software Foundation, either
00008 version 3 of the License, or (at your option) any later version.
00009 
00010 imagen is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013 GNU General Public License for more details.
00014 */
00015 
00016 #ifndef __IRAWIMAGE_H__
00017 #define __IRAWIMAGE_H__
00018 
00019 #include "imagen.h"
00020 
00021 #include "iAbstractImage.h"
00022 
00023 namespace imagen
00024 {
00026 
00028     class iRawImage : public iAbstractImage
00029     {
00030         public:
00032             iRawImage();
00033 
00035 
00036             iRawImage( const iRawImage &img );
00037 
00039             iRawImage( const iAbstractImage &img );
00040 
00042 
00046             iRawImage( int w, int h, iImageFormat f );
00047 
00049 
00051             iRawImage( Iubyte *d, int w, int h, iImageFormat f, int b );
00052 
00054             ~iRawImage();
00055 
00056             void clear();
00057 
00058             bool isFormatSupported( iImageFormat fmt ) const { return false; }
00059 
00060             iRawImage &operator=( const iAbstractImage &img );
00061 
00062         protected:
00063             void init();
00064             bool loadImage() { return true; }
00065             bool saveImage() { return true; }
00066     };
00067 }
00068 
00069 #endif // __IRAWIMAGE_H__