-
Notifications
You must be signed in to change notification settings - Fork 0
/
BmpLib0.h
34 lines (28 loc) · 931 Bytes
/
BmpLib0.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef BmpLib0_DEF
#define BmpLib0_DEF
int load_bmp(char bmp[], unsigned int &sizeX, unsigned int &sizeY);
void CopyBmpToImageClass (unsigned char* data);
int save_bmp(char bmp[], unsigned char* data, unsigned int sizeX, unsigned int sizeY);
void freeBMPMemory();
int getBMPSize(char *name, unsigned int &sizeX, unsigned int &sizeY);
typedef struct {
unsigned short int fileid;
unsigned long filesize;
unsigned short int reserved1;
unsigned short int reserved2;
unsigned long imgoffset;
} bmpinfoheader ;
typedef struct {
unsigned long headersize;
long imgwidth;
long imgheight;
unsigned short int numplanes;
unsigned short int pixeldepth;
unsigned long compression;
unsigned long bitmapsize;
long hresolution;
long vresolution;
unsigned long usedcolors;
unsigned long significantcolors;
} imginfoheader;
#endif