X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d167489bdf17d55d9bd11be834bc17277661063..af01f1ba0d697c07173f436ab661b4c833258a91:/include/wx/msw/dib.h diff --git a/include/wx/msw/dib.h b/include/wx/msw/dib.h index b84eb86046..dd68491a02 100644 --- a/include/wx/msw/dib.h +++ b/include/wx/msw/dib.h @@ -15,6 +15,9 @@ class WXDLLEXPORT wxBitmap; class WXDLLEXPORT wxPalette; +// WARNING: these functions are private to wxWindows and shouldn't be used +// by the user code, they risk to disappear in the next versions! + // ---------------------------------------------------------------------------- // Functions for working with DIBs // ---------------------------------------------------------------------------- @@ -29,8 +32,8 @@ extern bool wxCreateDIB(long xSize, long ySize, long bitsPerPixel, extern void wxFreeDIB(LPBITMAPINFO lpDIBHeader); // defined in ole/dataobj.cpp -extern size_t wxConvertBitmapToDIB(LPBITMAPINFO pbi, const wxBitmap& bitmap); -extern wxBitmap wxConvertDIBToBitmap(const LPBITMAPINFO pbi); +extern WXDLLEXPORT size_t wxConvertBitmapToDIB(LPBITMAPINFO pbi, const wxBitmap& bitmap); +extern WXDLLEXPORT wxBitmap wxConvertDIBToBitmap(const LPBITMAPINFO pbi); // the rest is defined in dib.cpp @@ -38,10 +41,10 @@ extern wxBitmap wxConvertDIBToBitmap(const LPBITMAPINFO pbi); bool wxSaveBitmap(wxChar *filename, wxBitmap *bitmap, wxPalette *colourmap = NULL); // Load device independent bitmap into device dependent bitmap -wxBitmap *wxLoadBitmap(wxChar *filename, wxColourMap **colourmap = NULL); +wxBitmap *wxLoadBitmap(wxChar *filename, wxPalette **colourmap = NULL); // Load into existing bitmap; -bool wxLoadIntoBitmap(wxChar *filename, wxBitmap *bitmap, wxColourMap **pal = NULL); +bool wxLoadIntoBitmap(wxChar *filename, wxBitmap *bitmap, wxPalette **pal = NULL); HANDLE wxBitmapToDIB (HBITMAP hBitmap, HPALETTE hPal); BOOL wxReadDIB(LPTSTR lpFileName, HBITMAP *bitmap, HPALETTE *palette);