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

  1. #ifndef __XBMENCOD_H
  2. #define __XBMENCOD_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. //  Title:  XBM Encoder Class Definition
  17. //
  18. //  Author:  John M. Miano  miano@colosseumbuilers.com
  19. //
  20.  
  21. #include "bitimage.h"
  22. #include "grexcept.h"
  23.  
  24. class XbmEncoder : public BitmapImageEncoder
  25. {
  26. public:
  27.   XbmEncoder () ;
  28.   XbmEncoder (const XbmEncoder &) ;
  29.   virtual ~XbmEncoder () ;
  30.   XbmEncoder &operator=(const XbmEncoder &) ;
  31.   void WriteImage (std::ostream &, BitmapImage &) ;
  32.  
  33.   int GetHotSpotX () const ;
  34.   void SetHotSpotX (int value) ;
  35.   int GetHotSpotY () const ;
  36.   void SetHotSpotY (int value) ;
  37.   void SetImageName (const std::string &) ;
  38.   std::string GetImageName () const ;
  39.  
  40. private:
  41.   void Initialize () ;
  42.   void DoCopy (const XbmEncoder &) ;
  43.  
  44.   // Image Properties
  45.   std::string image_name ;
  46.   int hot_spot_x ;
  47.   int hot_spot_y ;
  48. } ;
  49.  
  50.  
  51. #endif
  52.                                                           
  53.