Angband
readdib.h
Go to the documentation of this file.
1 
9 #ifndef INCLUDED_READDIB_H
10 #define INCLUDED_READDIB_H
11 
12 #include <stdbool.h>
13 
17 typedef struct {
18  HANDLE hDIB;
19  HBITMAP hBitmap;
20  HPALETTE hPalette;
21  BYTE CellWidth;
22  BYTE CellHeight;
25 } DIBINIT;
26 
30 extern bool ReadDIB(HWND, LPSTR, DIBINIT *);
31 
35 extern void FreeDIB(DIBINIT *dib);
36 
40 extern bool ReadDIB_PNG(HWND, LPSTR, DIBINIT *);
41 extern bool ReadDIB2_PNG(HWND, LPSTR, DIBINIT *, DIBINIT *, bool);
42 
43 #endif /* !INCLUDED_READDIB_H */
HPALETTE hPalette
Definition: readdib.h:20
HANDLE hDIB
Definition: readdib.h:18
int ImageHeight
Definition: readdib.h:24
BYTE CellWidth
Definition: readdib.h:21
BYTE CellHeight
Definition: readdib.h:22
bool ReadDIB2_PNG(HWND, LPSTR, DIBINIT *, DIBINIT *, bool)
Extract the "WIN32" flag from the compiler.
Definition: readpng.c:45
HBITMAP hBitmap
Definition: readdib.h:19
bool ReadDIB_PNG(HWND, LPSTR, DIBINIT *)
New png stuff.
bool ReadDIB(HWND, LPSTR, DIBINIT *)
Read a DIB from a file.
int ImageWidth
Definition: readdib.h:23
void FreeDIB(DIBINIT *dib)
Free a DIB.
Information about a bitmap.
Definition: readdib.h:17