Turbo C位图和BMP位图格式分极及应(4)
2015-06-19 01:16
导读:unsignedcharc[2]; inti; #c[0]=(ch0xf0)4; #c[1]=ch0x0f; #for(i=0;i2;i++){ #if(c[i]==0x01){c[i]=0x04;continue;} uif(c[i]==0x03){c[i]=0x6;continue;} mif(c[i]==0x04){c[i]=0x01;continue;} {if(c[i]==0x06){c
unsigned char c[2];
int i;
#c[0]=(ch&0xf0)>>4;
#c[1]=ch&0x0f;
#for (i=0; i<2; i++) {
#if (c[i]==0x01) {c[i]=0x04; continue;}
uif (c[i]==0x03) {c[i]=0x6; continue;}
mif (c[i]==0x04) {c[i]=0x01; continue;}
{if (c[i]==0x06) {c[i]=0x03; continue;}
if (c[i]==0x07) {c[i]=0x8; continue;}