DSPRelated.com
Forums

Re: Display of bmp image on TMS320C6711

Started by norr...@yahoo.co.uk May 17, 2006
Hi guys,
Is this correct to read the R, G, B value from image using fopen ( see the code snippet below that I took from the posted msg)? Really hope that anybody who know to reply.
>for(i=rows-1;i>=0;i--)
>{
>for(j=cols-1;j>=0;j--)
>{
>pixel=getc(fp);
>r[i*cols+j]=(unsigned char)pixel;
>g[i*cols+j]=(unsigned char)pixel;
>b[i*cols+j]=(unsigned char)pixel;
>
>}
>}
>}