1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Routines for loading and saving DIBs
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 class WXDLLEXPORT wxBitmap
;
16 class WXDLLEXPORT wxColourMap
;
18 // Save (device dependent) wxBitmap as a DIB
19 bool wxSaveBitmap(wxChar
*filename
, wxBitmap
*bitmap
, wxColourMap
*colourmap
= NULL
);
21 // Load device independent bitmap into device dependent bitmap
22 wxBitmap
*wxLoadBitmap(wxChar
*filename
, wxColourMap
**colourmap
= NULL
);
24 // Load into existing bitmap;
25 bool wxLoadIntoBitmap(wxChar
*filename
, wxBitmap
*bitmap
, wxColourMap
**pal
= NULL
);
27 HANDLE
wxBitmapToDIB (HBITMAP hBitmap
, HPALETTE hPal
);
28 BOOL
wxReadDIB(LPTSTR lpFileName
, HBITMAP
*bitmap
, HPALETTE
*palette
);
29 HANDLE
wxReadDIB2(LPTSTR lpFileName
);
30 LPSTR
wxFindDIBBits (LPSTR lpbi
);
31 HPALETTE
wxMakeDIBPalette(LPBITMAPINFOHEADER lpInfo
);