home *** CD-ROM | disk | FTP | other *** search
- #define PALVERSION 0x300
-
- // Some handy macros ------------------------------------------------------
- //
- // WIDTHBYTES takes # of bits in a scan line and rounds up to nearest
- // word.
-
- #define WIDTHBYTES(bits) (((bits) + 31) / 32 * 4)
-
- // Given a pointer to a DIB header, return TRUE if is a Windows 3.0 style
- // DIB, false if otherwise (PM style DIB).
-
- #define IS_WIN30_DIB(lpbi) ((*(LPDWORD) (lpbi)) == sizeof (BITMAPINFOHEADER))
-
-
- #define MAXREAD 32768 /* Number of bytes to be read during */
- /* each read operation */
-
- /* flags for _lseek */
- #define SEEK_CUR 1
- #define SEEK_END 2
- #define SEEK_SET 0
-
- WORD FAR PASCAL DIBNumColors (LPSTR lpbi);
- LPSTR FAR PASCAL FindDIBBits (LPSTR lpbi);
- WORD FAR PASCAL PaletteSize (LPSTR lpbi);
- HPALETTE FAR PASCAL CreateDIBPalette(HANDLE hDIB);
- DWORD FAR PASCAL DIBHeight (LPSTR lpDIB);
- DWORD FAR PASCAL DIBWidth (LPSTR lpDIB);
- HANDLE FAR PASCAL DIBLoad (LPSTR lpszDIBName);
- DWORD PASCAL lread (int fh, VOID far *pv, DWORD ul);
-
-