基本信息
源码名称:倚天字型翻譯
源码大小:0.37M
文件格式:.7z
开发语言:C#
更新时间:2018-07-04
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 1 元×
微信扫码支付:1 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
以倚天16x15字型作為翻譯基準
輸入中英文字(不包含特殊符號,基本ASCII可以使用),翻譯成每個字每個字的16x15 Byte 圖形
如有字幕機可搭配註解區段使用
for (i = 0; i < srvch.Length; i ) { oneltr = srvch[i].ToString(); if (Encoding.GetEncoding(950).GetByteCount(oneltr) < 2) { tmp = Encoding.ASCII.GetBytes(oneltr); hi = tmp[0]; offset = hi * 15; for (j = i * 34, h = 0; h < 34; h = 2, j = 2) { if (h < 30) { tx[j] = ascf[offset]; } else if (h >= 30 && h < 32) tx[j] = 0x00; else if (h == 32 && i != srvch.Length - 1) { tx[j] = 0x94; tx[j 1] = 0xd0; } offset ; } } else { tmp = Encoding.GetEncoding(950).GetBytes(oneltr); hi = tmp[0]; lo = tmp[1]; if (lo >= 161) sercode = (hi - 161) * 157 (lo - 161) 1 63; else sercode = (hi - 161) * 157 (lo - 64) 1; if (sercode >= 472 && sercode <= 5872) offset = (sercode - 472) * 30; else if (sercode >= 6281 && sercode <= 13973) offset = (sercode - 6281) * 30 162030; for (j = i * 34, h = 0; h < 34; j , h ) { if (h < 30) { if (offset > 3) { tx[j] = stdf[offset - 2]; } else { tx[j] = stdf[offset]; } } else if (h < 32) tx[j] = 0x00; else if (h == 32 && i != srvch.Length - 1) tx[j] = 0x94; else if (h == 33 && i != srvch.Length - 1) tx[j] = 0xd0; offset ; } } }