#ifndef BITMAP_8BIT_H
#define BITMAP_8BIT_H

typedef struct {

  unsigned char *image;
  
  int width;
  int height;
} Bitmap_8bit;


Bitmap_8bit * create_bmp8bit(int width, int height);

void setPixel_bmp8bit(Bitmap_8bit *bitmap,
		      int x, int y, unsigned char value);

unsigned char getPixel_bmp8bit(Bitmap_8bit *bitmap,
			       int x, int y);

int writeToFile_bmp8bit(Bitmap_8bit *bitmap, 
			char *filename);


Bitmap_8bit * readFromFile_bmp8bit(char *filename);

#endif


 

  

