home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Panoráma
/
computer_panorama_1997-12-hibas.iso
/
SHARE
/
GRAPH
/
PTC051.ZIP
/
SRC
/
IMAGE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-08-30
|
1KB
|
69 lines
/////////////////
// image class //
/////////////////
#ifndef __IMAGE_H
#define __IMAGE_H
#include "misc.h"
#include "file.h"
#include "format.h"
#include "tga.h"
/*
#include "pcx.h"
#include "bmp.h"
#include "jpg.h"
#include "png.h"
*/
class Image
{
public:
// constants
enum modes {READ=1,WRITE=2};
// setup
Image();
Image(char filename[],int mode=READ);
~Image();
// open and close
int open(char filename[],int mode=READ);
void close();
// interface
int info(int &width,int &height,int &advance,FORMAT &format,int &palette);
int load(void *buffer,void *palette);
int save(int width,int height,int advance,
FORMAT const &src,FORMAT const &dest,
void *image,void *palette,char *options=NULL);
// status
int ok();
private:
// file
File file;
// loader
ImageLoader *loader;
};
#endif