Forum Discussion
Altera_Forum
Honored Contributor
12 years agothank you very much for replying.
--- Quote Start --- first of all read the bitmap information.. it contains header info after that only data gets start.. so tats only i have separated the header info after that read the data info ..... --- Quote End --- what i understand from this is: i need to make a: bitmap file header like this one: typedef struct { unsigned short int type; /* Magic identifier */ unsigned int size; /* File size in bytes */ unsigned short int reserved1, reserved2; unsigned int offset; /* Offset to image data, bytes */ } HEADER; and a bitmap info header like this one: typedef struct { unsigned int size; /* Header size in bytes */ int width,height; /* Width and height of image */ unsigned short int planes; /* Number of colour planes */ unsigned short int bits; /* Bits per pixel */ unsigned int compression; /* Compression type */ unsigned int imagesize; /* Image size in bytes */ int xresolution,yresolution; /* Pixels per meter */ unsigned int ncolours; /* Number of colours */ unsigned int importantcolours; /* Important colours */ } INFOHEADER; should i also give the values for type, size, offset, reserved, width, height, etc. or just this? and i am going to include this header file to my sd card source file? about the "header=(unsigned char)(alt_up_sd_card_read(sd_fileh));", where did you get the name 'header'? sorry, i'm not really familiar with c so i'm having a hard time with programming in nios but i need to make this work for our project. thanks for the help.