1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Routines for loading and saving DIBs
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // Save (device dependent) wxBitmap as a DIB
13 bool wxSaveBitmap(wxChar
*filename
, wxBitmap
*bitmap
, wxColourMap
*colourmap
= NULL
);
15 // Load device independent bitmap into device dependent bitmap
16 wxBitmap
*wxLoadBitmap(wxChar
*filename
, wxColourMap
**colourmap
= NULL
);
18 // Load into existing bitmap;
19 bool wxLoadIntoBitmap(wxChar
*filename
, wxBitmap
*bitmap
, wxColourMap
**pal
= NULL
);
21 HANDLE
BitmapToDIB (HBITMAP hBitmap
, HPALETTE hPal
);
22 BOOL
ReadDIB(LPTSTR lpFileName
, HBITMAP
*bitmap
, HPALETTE
*palette
);
23 HANDLE
ReadDIB2(LPTSTR lpFileName
);
24 LPSTR
FindDIBBits (LPSTR lpbi
);
25 HPALETTE
MakeDIBPalette(LPBITMAPINFOHEADER lpInfo
);