2008年9月17日水曜日

GENIFAとBoralandC

BoralandC
unsigned far _Cdecl imagesize(int __left, int __top, int __right, int __bottom);
void far _Cdecl getimage(int __left, int __top, int __right, int __bottom, void far *__bitmap);
void far _Cdecl putimage(int __left, int __top, const void far *__bitmap, int __op);


GENIFA
struct image_head{ /* img_file_header */
short id; /* file identity */
ushort max_index; /* maximum number of images */
long next_free; /* offset of first free byte */
long offset_table; /* offset of image offset table */
};

typedef struct _image_fd{
FILE *fd; /* dos file descriptor */
struct image_head ih; /* mem copy of file header */
long *offsets; /* mem copy of image offset tables */
}image_fd;

typedef struct _rect {
short Xmin;
short Ymin;
short Xmax;
short Ymax;
} rect;

struct _image_fd *open_image_file(char *fname,short write_mode);
short get_raw_image_file(struct _rect *ir,FILE *fd);
short put_image_file(struct _rect *ir, struct _image_fd *ifd,unsigned short index);
void close_image_file(struct _image_fd *ifd);

0 件のコメント: