#ifndef __TTF_BITMAP_H
#define __TTF_BITMAP_H

#ifndef __TTF_H
#include "ttf.h"
#endif

#ifndef __TTF_FONT_H
#include "font.h"
#endif

#define BITMAP_ONE_BIT      1
#define BITMAP_TWO_BIT      2
#define BITMAP_FOUR_BIT     4 
#define BITMAP_ONE_BYTE     8
#define BITMAP_TWO_BYTES    0x10
#define BITMAP_THREE_BYTES  0x20
#define BITMAP_FOUR_BYTES   0x40

typedef struct {
  double point;
  USHORT res;
  USHORT xsize,ysize,xpoint;
  BYTE *map;
  BYTE mode;
  int color;
} BITMAP;

#define BITMAP_len(b) ((b)->xsize*(b)->ysize)
BITMAP *BITMAP_Init(double point_of_char,int resolution_of_device,int mode);
void BITMAP_fone(BITMAP *bit);
void BITMAP_color(BITMAP *bit,int color);
#define BITMAP_map(bit)        ((bit)->map)
#define BITMAP_xpoint(bit)     ((bit)->xpoint)
#define BITMAP_ypoint(bit)     ((bit)->ysize)

#endif
