sp; newdc.SelectObject(&newbmp);
//将文字拉伸或缩小到所需大小
newdc.StretchBlt(0,0,newsize.cx,newsize.cy,&olddc,0,0,fsize.cx,fsize.cy,SRCCOPY);
//在bmp
图片上逐点读取
for(tempy=0;tempy<32;tempy++)
{
for(tempx=0;tempx<25;tempx++)
{
color=newdc.GetPixel(tempx+5,tempy+6); //获取当前点的颜色
//如果为黑色则当前数据为1,反之为0
b_single[n][tempy][tempx]=(color==bkcolor)?0:1;
}
}
}
//释放所有创建创建的资源
newdc.DeleteDC();
olddc.DeleteDC();
myfont.DeleteObject();
DeleteObject(oldbmp);
DeleteObject(newbmp);
}