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

TMemBmp.h

00001 // TMemBmp.h: Schnittstelle für die Klasse TMemBmp.
00002 //
00004 
00005 #if !defined(AFX_TMEMBMP_H__3645ACAC_9AE4_4E67_888A_549DE63DB350__INCLUDED_)
00006 #define AFX_TMEMBMP_H__3645ACAC_9AE4_4E67_888A_549DE63DB350__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #pragma pack(push)
00013 #pragma pack(1)
00014 
00015 
00016 struct BmpFile
00017 {
00018         unsigned short int type;
00019         unsigned int size;
00020         unsigned int reserved;
00021         unsigned int offset;
00022         unsigned int headersize;
00023         unsigned int width;
00024         unsigned int height;
00025         unsigned short int planes;
00026         unsigned short int bpp;
00027         unsigned int compression;
00028         unsigned int imgSize;
00029         unsigned int xperM;
00030         unsigned int yperM;
00031         unsigned int colU;
00032         unsigned int colI;
00033 };
00034 
00035 #pragma pack(pop)
00036 
00037 class TMemBmp  
00038 {
00039 private:
00040         int width;
00041         int height;
00042         
00043 public:
00044         int getHeight();
00045         int getWidth();
00046         int getImgSize();
00047         unsigned char* data;
00048         TMemBmp(int w, int h);
00049         virtual ~TMemBmp();
00050         void setPixel(int x, int y, unsigned int p);
00051 
00052 };
00053 
00054 #endif // !defined(AFX_TMEMBMP_H__3645ACAC_9AE4_4E67_888A_549DE63DB350__INCLUDED_)

Generated on Wed Dec 3 00:44:08 2003 for Volvis by doxygen 1.3.5