#ifndef _WX_BITMAP_H_
#define _WX_BITMAP_H_
-#ifdef __GNUG__
- #pragma interface "bitmap.h"
-#endif
-
#include "wx/os2/private.h"
#include "wx/os2/gdiimage.h"
#include "wx/gdicmn.h"
);
// If depth is omitted, will create a bitmap compatible with the display
- wxBitmap( int nWidth
- ,int nHeight
- ,int nDepth = -1
- );
+ wxBitmap( int nWidth, int nHeight, int nDepth = -1 );
wxBitmap( const wxImage& image, int depth = -1 )
{ (void)CreateFromImage(image, depth); }
virtual bool LoadFile( int nId
,long lType = wxBITMAP_TYPE_BMP_RESOURCE
);
+ virtual bool LoadFile( const wxString& rName
+ ,long lType = wxBITMAP_TYPE_XPM
+ );
virtual bool SaveFile( const wxString& rName
,int lType
,const wxPalette* pCmap = NULL
,int nDesiredWidth
,int nDesiredHeight
);
+ virtual bool LoadFile( wxBitmap* pBitmap
+ ,const wxString& rName
+ ,long lFlags
+ ,int nDesiredWidth
+ ,int nDesiredHeight
+ );
virtual bool SaveFile( wxBitmap* pBitmap
,const wxString& rName
,int lType
,int lType
);
private:
- inline virtual bool Load( wxGDIImage* pImage
- ,const wxString& rName
- ,HPS hPs
- ,long lFlags
- ,int nDesiredWidth
- ,int nDesiredHeight
+ inline virtual bool Load( wxGDIImage* WXUNUSED(pImage)
+ ,const wxString& WXUNUSED(rName)
+ ,HPS WXUNUSED(hPs)
+ ,long WXUNUSED(lFlags)
+ ,int WXUNUSED(nDesiredWidth)
+ ,int WXUNUSED(nDesiredHeight)
)
- { return FALSE; }
+ { return false; }
DECLARE_DYNAMIC_CLASS(wxBitmapHandler)
}; // end of CLASS wxBitmapHandler