home *** CD-ROM | disk | FTP | other *** search
/ Computer Panoráma / computer_panorama_1997-12-hibas.iso / SHARE / GRAPH / PTC051.ZIP / SRC / LOADER.H < prev    next >
C/C++ Source or Header  |  1997-08-28  |  726b  |  39 lines

  1. ////////////////////////
  2. // image loader class //
  3. ////////////////////////
  4.  
  5. #ifndef __LOADER_H
  6. #define __LOADER_H
  7.  
  8. #include "format.h"
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. class ImageLoader
  17. {
  18.     public:
  19.  
  20.         // virtual destructor
  21.         virtual ~ImageLoader() {};
  22.  
  23.         // interface
  24.         virtual int info(int &width,int &height,int &advance,FORMAT &format,int &palette) = 0;
  25.         virtual int load(void *image,void *palette)                                       = 0; 
  26.         virtual int save(int width,int height,int advance,
  27.                          FORMAT const &src,FORMAT const &dest,
  28.                          void *image,void *palette,char *options=NULL)                    = 0;
  29. };
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. #endif
  39.