home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / include / wx / os2 / pnghand.h < prev    next >
C/C++ Source or Header  |  1999-12-22  |  1KB  |  47 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        pnghand.h
  3. // Purpose:     PNG bitmap handler
  4. // Author:      Julian Smart
  5. // Modified by:
  6. // Created:     04/01/98
  7. // RCS-ID:      $Id: PNGHAND.H,v 1.3 1999/12/22 18:41:00 DW Exp $
  8. // Copyright:   (c) Microsoft, Julian Smart
  9. // Licence:       wxWindows licence
  10. /////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifdef __GNUG__
  13. #pragma interface "pnghand.h"
  14. #endif
  15.  
  16. #ifndef _WX_PNGHAND_H_
  17. #define _WX_PNGHAND_H_
  18.  
  19. class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
  20. {
  21.     DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
  22. public:
  23.     inline wxPNGFileHandler(void)
  24.     {
  25.         m_sName = "PNG bitmap file";
  26.         m_sExtension = "bmp";
  27.         m_lType = wxBITMAP_TYPE_PNG;
  28.     };
  29.  
  30.     virtual bool LoadFile( wxBitmap*       pBitmap
  31.                           ,const wxString& rName
  32.                           ,HPS             hPs
  33.                           ,long            lFlags
  34.                           ,int             nDesiredWidth
  35.                           ,int             nDesiredHeight
  36.                          );
  37.     virtual bool SaveFile( wxBitmap*        pBitmap
  38.                           ,const wxString&  rName
  39.                           ,int              nType
  40.                           ,const wxPalette* pPalette = NULL
  41.                          );
  42. };
  43.  
  44. #endif
  45.   // _WX_PNGHAND_H_
  46.  
  47.