研究生
最后登录1970-1-1
在线时间 小时
注册时间2014-8-15
|
如下:#ifdef HX8347,是什么意思?
bmpres = f_write(&bmpfsrc, header,sizeof(unsigned char)*54, &mybw);
for(i=0;i<Height;i++) //¸ß
{
if(!(Width%4))
{
for(j=0;j<Width;j++) //¿í
{
#ifdef HX8347
tmp_rgb = bmp4(j+y,Height-i+x);
#else
tmp_rgb = bmp4(Height-i+x,j+y);
#endif
r = GETR_FROM_RGB16(tmp_rgb);
g = GETG_FROM_RGB16(tmp_rgb);
b = GETB_FROM_RGB16(tmp_rgb);
bmpres = f_write(&bmpfsrc, &b,sizeof(unsigned char), &mybw);
bmpres = f_write(&bmpfsrc, &g,sizeof(unsigned char), &mybw);
bmpres = f_write(&bmpfsrc, &r,sizeof(unsigned char), &mybw);
}
}
|
|