#ifndef BITMAP_24BITRGB_H
#define BITMAP_24BITRGB_H

typedef struct {

  unsigned char *image;
  int width;
  int height;

} Bitmap_24bitRGB;

typedef struct {
  unsigned char red;
  unsigned char green;
  unsigned char blue;
} Pixel_24bitRGB;

Bitmap_24bitRGB * create_bmp24bitRGB(int width, int height);

void setPixel_bmp24bitRGB(Bitmap_24bitRGB *bitmap, 
			  int x, int y, Pixel_24bitRGB pixel);

Pixel_24bitRGB getPixel_bmp24bitRGB(Bitmap_24bitRGB *bitmap,
				    int x, int y);

int writeToFile_bmp24bitRGB(Bitmap_24bitRGB *bitmap, char *filename);

Bitmap_24bitRGB * readFromFile_bmp24bitRGB(char *filename);


#endif

