Main Page | Class Hierarchy | Class List | File List | Class Members

baseimage.h

00001 /* 00002 * This file is part of libCP 00003 * FILE: baseimage.h 00004 * AUTHOR: Harald Studer <hs@lexip.ch> 00005 * Mathias Herzog <mathu@gmx.ch> 00006 * 00007 * 00008 * Copyright (c) 2004, The libCP project 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your opinion) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; see the file LICENSE. If not, write to 00022 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00023 * Boston, MA 02111-1307, USA. 00024 */ 00025 #ifndef _BASEIMAGE_H_ 00026 #define _BASEIMAGE_H_ 00027 00028 #include "dataobject.h" 00029 00030 namespace LIBCP{ 00031 00036 class BaseImage : public DataObject 00037 { 00038 00039 public: 00040 BaseImage( int width, int height, int type ) :m_width( width ), 00041 m_height( height ), 00042 m_type( type ){} 00043 int width() { return m_width; } 00044 int height() {return m_height; } 00045 void setWidth( int width ) { m_width = width; } 00046 void setHeight( int height ) { m_height = height; } 00047 int type() {return m_type;} 00048 void setType( int type ) { m_type = type; } 00049 void lock(); 00050 void unlock(); 00051 00052 static const int BINARY = 1; 00053 static const int GRAY = 2; 00054 static const int COLOR24 = 3; 00055 static const int COLOR32 = 4; 00056 00057 private: 00058 int m_width, m_height, m_type; 00059 00060 00061 };//end of class BaseImage 00062 00063 }//end of namespace BaseImage 00064 00065 #endif //_BASEIMAGE_H_

Generated on Wed May 26 16:43:52 2004 for libcp by doxygen 1.3.7