00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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 };
00062
00063 }
00064
00065
#endif //_BASEIMAGE_H_