home *** CD-ROM | disk | FTP | other *** search
/ Compressed Image File Formats / CompressedImageFileFormatsJohnMiano.iso / pc / Examples / c02 / inc / bmpdecod.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-17  |  1.1 KB  |  50 lines

  1. #ifndef __BMPDECOD_H
  2. #define __BMPDECOD_H
  3. //
  4. // Copyright (c) 1997,1998 Colosseum Builders, Inc.
  5. // All rights reserved.
  6. //
  7. // Colosseum Builders, Inc. makes no warranty, expressed or implied
  8. // with regards to this software. It is provided as is.
  9. //
  10. // See the README.TXT file that came with this software for restrictions
  11. // on the use and redistribution of this file or send E-mail to
  12. // info@colosseumbuilders.com
  13. //
  14.  
  15. //
  16. //  BMP Decoder Library.
  17. //
  18. //  Title:   BmpDecoder Class Implementation
  19. //
  20. //  Author:  John M. Miano  miano@colosseumbuilders.com
  21. //
  22. //  Description:
  23. //
  24. //    This class decodes Windows BMP file.
  25. //
  26. //
  27.  
  28. #include <iostream>
  29.  
  30. #include "bitimage.h"
  31. #include "grexcept.h"
  32. #include "bmp.h"
  33.  
  34. class BmpDecoder : public BitmapImageDecoder
  35. {
  36. public:
  37.   BmpDecoder () ;
  38.   virtual ~BmpDecoder () ;
  39.   BmpDecoder (const BmpDecoder &) ;
  40.   BmpDecoder &operator=(const BmpDecoder &) ;
  41.  
  42.   virtual void ReadImage (std::istream &, BitmapImage &) ;
  43. private:
  44.   void Initialize () ;
  45.   void DoCopy (const BmpDecoder &) ;
  46.   void CallProgressFunction (unsigned int percent) ;
  47. } ;
  48.  
  49. #endif
  50.