UINT8 dot; //应该会损失数据内容
UINT16 s;
CBitmap bmp;
UINT16 buf[IMAGE_WIDTH*24];
memset(buf,0x00,IMAGE_WIDTH*24*2);
CFile f(_T("\\Nand\\姓名.bmp"),CFile::typeBinary|CFile::modeRead);
//字符转换
for(int i=0; i<5; i++)
{
for (int j=0;j<24;j++)
{
for (int k=0;k<3;k++)
{
f.Seek(24*3*i+3*j+k,CFile::begin);
f.Read(&dot,1);
for (int m=0;m<8;m++)
{
if ((dot<<m)&0x80)
{
buf[120*j+24*i+k*8+m]=0x0000;
}
else
{
//buf[120*j+24*i+k*8+m]=0xae9d;
buf[120*j+24*i+k*8+m]=0xffff;
}
}
}
}
}
bmp.CreateBitmap(120,24,1,16,(unsigned char*)buf);
m_bmp.SetBitmap((HBITMAP)bmp);
UINT16 s;
CBitmap bmp;
UINT16 buf[IMAGE_WIDTH*24];
memset(buf,0x00,IMAGE_WIDTH*24*2);
CFile f(_T("\\Nand\\姓名.bmp"),CFile::typeBinary|CFile::modeRead);
//字符转换
for(int i=0; i<5; i++)
{
for (int j=0;j<24;j++)
{
for (int k=0;k<3;k++)
{
f.Seek(24*3*i+3*j+k,CFile::begin);
f.Read(&dot,1);
for (int m=0;m<8;m++)
{
if ((dot<<m)&0x80)
{
buf[120*j+24*i+k*8+m]=0x0000;
}
else
{
//buf[120*j+24*i+k*8+m]=0xae9d;
buf[120*j+24*i+k*8+m]=0xffff;
}
}
}
}
}
bmp.CreateBitmap(120,24,1,16,(unsigned char*)buf);
m_bmp.SetBitmap((HBITMAP)bmp);