初级会员

- 积分
- 130
- 金钱
- 130
- 注册时间
- 2013-7-16
- 在线时间
- 0 小时
|
发表于 2013-7-17 13:41:56
|
显示全部楼层
回复【6楼】zm92009:
---------------------------------
资料是有,改的地方不好找我直接放这里吧,代码如下(这是用PCtoLCD2000 中48*48大小来按行取字模的):
if (size==48)
{
temp=asc2_2020[num][pos];
temp2=asc2_2020[num][pos+1];
pos+=1;
while(zcount<16)
{
if (zcount<8)
temp4=temp;
else
temp4=temp2;
for(t=0;t<8;t++)
{
if(temp4&0x01)POINT_COLOR=colortemp;
else  OINT_COLOR=BACK_COLOR;
LCD_DrawPoint(x,y);
temp4>>=1;
x++;
zcount++;
}
}
zcount=0;
x=x0;
y++;
}
其实很简单就是一个一个像素点画上去就行啦。 |
|