读写bmp的类,你要自己改改
#define EDIT
//#define DEBUG
#ifndef __BMP_H_
#define __BMP_H_
#include <stdio.h>
#define DEBUGBMP
class Bmp:public Bitmap
{
protected:
int read(char far*);
void exchg(int,char far*);
void exchg(int);
struct Bmppal{
char blue;
char green;
char red;
char rev;
};
struct Bmphd{
int FLG;
long leng;
char rev1[4];
long ofst;
long structleng;
long width;
long height;
int plan;
int bits;
long cmpflg;
long datlen;
long res_v;
long res_h;
char rev2[8];
};
I think you must access the address of
video adapter directly. you should find
an old book about it first. (i think the
job depend on the video adapter, SVGA,
and EVGA are different sytle.)
Jansen Zhu.