URL
https://opencores.org/ocsvn/wf3d/wf3d/trunk
Subversion Repositories wf3d
[/] [wf3d/] [trunk/] [bin/] [a2bmp/] [bitmap.h] - Rev 2
Go to most recent revision | Compare with Previous | Blame | View Log
#ifndef __BITMAP_H___ #define __BITMAP_H___ #define FILEHEADERSIZE 14 #define INFOHEADERSIZE 40 #define HEADERSIZE (FILEHEADERSIZE+INFOHEADERSIZE) typedef struct{ unsigned char b; unsigned char g; unsigned char r; }rgb; typedef struct{ int height; int width; rgb *dat; } Image; Image *read_txt(char *filename, int w, int h); int write_bmp(char *filename, Image *img); Image *create_image(int width, int height); void delete_image(Image *img); #endif
Go to most recent revision | Compare with Previous | Blame | View Log