取模数据格式转换源码 宽高8*16 低位在前 第二字节由右边改为下边

//取模数据格式转换源码 宽高8*16 低位在前 第二字节由右边改为下边
class ZH2{
static 	char[] ew={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0xE0,0x9C,0xB0,0xC0,0x00,0x00,0x0E,0x09,0x00,0x00,0x00,0x00,0x0B,0x0C,
0x04,0xFC,0x44,0x44,0x44,0x44,0x44,0x8C,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x07,
0x04,0xFC,0x44,0x44,0x44,0x44,0xA4,0x18,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x07,
0x04,0xFC,0x04,0x04,0x04,0x04,0x04,0x1C,0x08,0x0F,0x08,0x00,0x00,0x00,0x00,0x00,
0x04,0x04,0xFC,0x04,0x04,0x04,0xFC,0x04,0x08,0x0F,0x08,0x08,0x08,0x08,0x0F,0x08,
0x04,0xFC,0x44,0x44,0x44,0xE4,0x04,0x0C,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x0F,
0x04,0xB8,0x40,0x44,0xFC,0x44,0x40,0xB8,0x06,0x01,0x00,0x08,0x0F,0x08,0x00,0x01,
0x00,0x1C,0x08,0x44,0x44,0x44,0xB8,0x00,0x00,0x06,0x08,0x08,0x08,0x08,0x07,0x00,
0xFC,0x04,0x00,0x80,0x40,0x20,0x14,0xFC,0x0F,0x0A,0x01,0x00,0x00,0x00,0x08,0x0F,
0xFC,0x04,0x01,0x82,0x42,0x21,0x14,0xFC,0x0F,0x0A,0x01,0x00,0x00,0x00,0x08,0x0F,
0x04,0xFC,0x44,0x40,0xB0,0x08,0x04,0x08,0x08,0x0F,0x08,0x00,0x00,0x07,0x08,0x04,
0x00,0x04,0xFC,0x04,0x04,0x04,0x04,0xFC,0x08,0x04,0x03,0x00,0x00,0x00,0x08,0x0F,
0x18,0x60,0x80,0x00,0x80,0x60,0x18,0xFC,0x08,0x00,0x01,0x06,0x01,0x00,0x08,0x0F,
0xFC,0x44,0x40,0x40,0x40,0x40,0x44,0xFC,0x0F,0x08,0x00,0x00,0x00,0x00,0x08,0x0F,
0xF0,0x08,0x04,0x04,0x04,0x04,0x08,0xF0,0x03,0x04,0x08,0x08,0x08,0x08,0x04,0x03,
0xFC,0x04,0x04,0x04,0x04,0x04,0x04,0xFC,0x0F,0x08,0x00,0x00,0x00,0x00,0x08,0x0F,
0x04,0xFC,0x44,0x44,0x44,0x44,0x44,0x38,0x08,0x0F,0x08,0x00,0x00,0x00,0x00,0x00,
0xF0,0x08,0x04,0x04,0x04,0x04,0x08,0x1C,0x03,0x04,0x08,0x08,0x08,0x08,0x04,0x02,
0x0C,0x04,0x04,0x04,0xFC,0x04,0x04,0x04,0x00,0x00,0x00,0x08,0x0F,0x08,0x00,0x00,
0x04,0x0C,0x34,0xC0,0x80,0x64,0x1C,0x04,0x04,0x08,0x08,0x06,0x01,0x00,0x00,0x00,
0xE0,0x10,0x10,0x14,0xFC,0x14,0x10,0x10,0x01,0x02,0x02,0x0A,0x0F,0x0A,0x02,0x02,
0x04,0x0C,0x14,0x20,0xC0,0x20,0x14,0x0C,0x08,0x0C,0x0A,0x01,0x00,0x01,0x0A,0x0C,
0xFC,0x04,0x00,0x00,0x00,0x00,0x04,0xFC,0x0F,0x08,0x08,0x08,0x08,0x08,0x08,0x0F,
0x7C,0x84,0x80,0x80,0x80,0x40,0x44,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x0F,
0x04,0x00,0x00,0x04,0xFC,0x04,0x00,0x00,0x08,0x08,0x08,0x08,0x0F,0x08,0x08,0x08,
0x04,0x00,0x00,0x04,0xFC,0x04,0x00,0x00,0x08,0x08,0x08,0x08,0x0F,0x08,0x08,0x08,
0x04,0x04,0xFC,0x44,0x44,0x40,0x40,0x40,0x00,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,
0x44,0x40,0x40,0x40,0x40,0x80,0x00,0x04,0x08,0x08,0x08,0x08,0x08,0x07,0x00,0x08,
0x04,0xFC,0x44,0x40,0x40,0x40,0x40,0x80,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x07,
0x00,0x1C,0x08,0x44,0x44,0x44,0x48,0xF0,0x00,0x06,0x08,0x08,0x08,0x08,0x04,0x03,
0x44,0x40,0xF0,0x08,0x04,0x04,0x04,0x04,0x08,0x00,0x03,0x04,0x08,0x08,0x08,0x08,
0x38,0x44,0x84,0x84,0x84,0x84,0xFC,0x04,0x08,0x08,0x07,0x00,0x00,0x08,0x0F,0x08,
0x00,0x40,0x20,0x20,0x20,0xC0,0x00,0x00,0x00,0x06,0x09,0x09,0x09,0x07,0x08,0x00,
0x00,0xE0,0x50,0x28,0x28,0x24,0xC4,0x00,0x00,0x03,0x04,0x08,0x08,0x04,0x03,0x00,
0x00,0x20,0xE0,0x20,0x20,0x20,0xC0,0x00,0x00,0x08,0x0F,0x09,0x09,0x09,0x06,0x00,
0x00,0x20,0xE0,0x20,0x20,0x20,0x60,0x00,0x00,0x08,0x0F,0x08,0x00,0x00,0x00,0x00,
0x00,0x20,0xE0,0x20,0x20,0xE0,0x20,0x00,0x18,0x0C,0x0B,0x08,0x08,0x0F,0x18,0x00,
0x00,0x00,0xC0,0x20,0x20,0x20,0xC0,0x00,0x00,0x00,0x07,0x09,0x09,0x09,0x05,0x00,
0x20,0xC0,0x00,0xE0,0x00,0xC0,0x20,0x20,0x08,0x06,0x01,0x0F,0x01,0x06,0x08,0x08,
0x00,0xE0,0x40,0x20,0x20,0xC0,0x00,0x00,0x00,0x04,0x08,0x08,0x09,0x06,0x00,0x00,
0x20,0xE0,0x20,0x00,0x00,0xA0,0xE0,0x20,0x08,0x0F,0x0C,0x02,0x01,0x08,0x0F,0x08,
0x20,0xE0,0x28,0x10,0x10,0xA8,0xE0,0x20,0x08,0x0F,0x0C,0x02,0x01,0x08,0x0F,0x08,
0x20,0xE0,0x20,0x00,0xC0,0x20,0x40,0x00,0x08,0x0F,0x09,0x01,0x06,0x08,0x04,0x00,
0x00,0x00,0x20,0xE0,0x20,0x20,0xE0,0x20,0x00,0x08,0x08,0x07,0x00,0x08,0x0F,0x08,
0xE0,0x80,0x00,0x00,0x00,0x80,0xE0,0x20,0x0F,0x08,0x01,0x06,0x01,0x08,0x0F,0x08,
0x20,0xE0,0x20,0x00,0x00,0x20,0xE0,0x20,0x08,0x0F,0x09,0x01,0x01,0x09,0x0F,0x08,
0x00,0x80,0x40,0x20,0x20,0x40,0x80,0x00,0x00,0x03,0x04,0x08,0x08,0x04,0x03,0x00,
0x00,0x20,0xE0,0x20,0x20,0x20,0xE0,0x20,0x00,0x08,0x0F,0x08,0x00,0x08,0x0F,0x08,
0x92,0x00,0x92,0x00,0x92,0x00,0x92,0x00,0x24,0x00,0x24,0x00,0x24,0x00,0x24,0x00,
0xAA,0x00,0xAA,0x00,0xAA,0x00,0xAA,0x00,0x2A,0x00,0x2A,0x00,0x2A,0x00,0x2A,0x00,
0x77,0xDD,0xDD,0x77,0xF5,0xDD,0x57,0x77,0x77,0x5D,0x5D,0x77,0x5F,0x5D,0x77,0x77,
0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,
0x80,0x80,0x80,0x80,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,
0x40,0x40,0x40,0x40,0xFF,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x7F,0x00,0x00,0x00,
0x80,0x80,0x80,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x7F,0x00,0x00,
0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x7F,0x00,0x00,
0x40,0x40,0x40,0x40,0xC0,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x7F,0x00,0x00,0x00,
0x40,0x40,0x40,0x7F,0x00,0xFF,0x00,0x00,0x01,0x01,0x01,0x7F,0x00,0x7F,0x00,0x00,
0x00,0x00,0x00,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x7F,0x00,0x00,
0x40,0x40,0x40,0x40,0x40,0xC0,0x00,0x00,0x01,0x01,0x01,0x7F,0x00,0x7F,0x00,0x00,
0x40,0x40,0x40,0x7F,0x00,0xFF,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,
0x80,0x80,0x80,0xFF,0x80,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x40,0x40,0x40,0x40,0xFF,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,
0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,
};
	static void zh8_16()
	{
		System.out.println("char ew[]={");
		char n[]=new char[ew.length];
		char[] pos={1,9,2,10,3,11,4,12,5,13,6,14,7,15,8,16,};
		for(int k=0;k<ew.length/16;k++)
		{
		for(int i=0;i<16;i++)
		{
			n[k*16+i]=ew[k*16+pos[i]-1];
			System.out.printf("0x%02X,",(int)n[k*16+i]);
		}
		System.out.println();		
	}
	System.out.println("};");
	}
	public static void main(String[] strArg)
	{
		
		zh8_16();	
	}
	}



阅读更多
文章标签: 取模 源码 c语言
个人分类: java c++复习
上一篇ecshop2.7.3土特产商城源码绿色大气整站带数据茶叶商城网站模板 修正
下一篇高仿砍柴网自媒体新闻资讯网站源码(织梦DEDE内核+手机WAP版)
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭