blob: 5b4fa291fdb99f552e9be59b64900f9410727123 (
plain) (
blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
#ifndef _duck_bmp_h
#define _duck_bmp_h
#include "dkpltfrm.h"
#if defined(__cplusplus)
extern "C" {
#endif
typedef struct tDKBITMAP_old
{
unsigned long ulFormatTag;
unsigned long usWidth; /* width */
unsigned long usHeight; /* height */
unsigned long bmWidthBytes;
unsigned short bmPlanes;
unsigned short usDepth;
unsigned int ulHandler;
} DKBITMAP_old; /* Depricated please ! */
/* This is the REAL BITMAP */
typedef struct tDKBITMAP {
unsigned long bmType;
unsigned long bmWidth;
unsigned long bmHeight;
unsigned long bmWidthBytes;
unsigned short bmPlanes;
unsigned short bmBitsPixel;
void* bmBits;
} DKBITMAP;
#if !defined(DWORD)
#define DWORD unsigned int
#endif
#if !defined(WORD)
#define WORD unsigned short
#endif
typedef struct DK_BITMAPINFOHEADER_t
{
DWORD biSize;
DWORD biWidth;
DWORD biHeight;
WORD biPlanes;
WORD biBitCount;
DWORD biCompression;
DWORD biSizeImage;
DWORD biXPelsPerMeter;
DWORD biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
DWORD fccHandler; /* hopefully this never matters */
DWORD dxFlavor;
} DK_BITMAPINFOHEADER;
static int DK_BITMAPINFOHEADER_REFLECT[ ] = { 4,4,4,2,2, 4,4,4,4,4,4,4,4 };
#undef WORD
#undef DWORD
#if defined(__cplusplus)
}
#endif
#endif
|