pnghand.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/os2/pnghand.h
  3. // Purpose: PNG bitmap handler
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 04/01/98
  7. // Copyright: (c) Microsoft, Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_PNGHAND_H_
  11. #define _WX_PNGHAND_H_
  12. class WXDLLIMPEXP_CORE wxPNGFileHandler: public wxBitmapHandler
  13. {
  14. DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
  15. public:
  16. inline wxPNGFileHandler(void)
  17. {
  18. m_sName = "PNG bitmap file";
  19. m_sExtension = "bmp";
  20. m_lType = wxBITMAP_TYPE_PNG;
  21. }
  22. virtual bool LoadFile( wxBitmap* pBitmap
  23. ,const wxString& rName
  24. ,HPS hPs
  25. ,long lFlags
  26. ,int nDesiredWidth
  27. ,int nDesiredHeight
  28. );
  29. virtual bool SaveFile( wxBitmap* pBitmap
  30. ,const wxString& rName
  31. ,int nType
  32. ,const wxPalette* pPalette = NULL
  33. );
  34. };
  35. #endif
  36. // _WX_PNGHAND_H_