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 >
Wrap
C/C++ Source or Header
|
1997-08-28
|
726b
|
39 lines
////////////////////////
// image loader class //
////////////////////////
#ifndef __LOADER_H
#define __LOADER_H
#include "format.h"
class ImageLoader
{
public:
// virtual destructor
virtual ~ImageLoader() {};
// interface
virtual int info(int &width,int &height,int &advance,FORMAT &format,int &palette) = 0;
virtual int load(void *image,void *palette) = 0;
virtual int save(int width,int height,int advance,
FORMAT const &src,FORMAT const &dest,
void *image,void *palette,char *options=NULL) = 0;
};
#endif