各位大侠
小弟在这里要请教的问题,因为最近看到过一种很好玩的产品,好像是用在舞台灯光上的,用步进电机,扫描图形,实在不解,也有跟相关人士联系了一下,现在想问一下图形数据怎样才能转化为C用的二进制位值文件呢,比如说这个
uchar code laserdata81[]={0x03,0x50,0xcd,0xa9,0xcd,0xa9,0xcd,0xa9,0xcb,0xac,0xc8,0xae,0xc6,0xaf,0xc5,0xb2,0xc4,0xb3,0xc2,0xb4,0xbf,0xb4,
0xbd,0xb3,0xbb,0xb2,0xb7,0xb3,0xb2,0xb4,0xad,0xb4,0xa8,0xb4,0xa3,0xb4,0x9e,0xb5,0x99,0xb5,0x94,0xb6,
0x8f,0xb6,0x8a,0xb6,0x85,0xb6,0x80,0xb5,0x7a,0xb5,0x75,0xb5,0x70,0xb4,0x6b,0xb3,0x66,0xb2,0x61,0xb1,
0x5c,0xaf,0x57,0xad,0x52,0xac,0x4d,0xa9,0x48,0xa7,0x42,0xa5,0x3f,0xa4,0x3f,0xa4,0x3f,0xa4,0xff,0xff,
0x3f,0xa4,0x43,0xa4,0x48,0xa4,0x4c,0xa4,0x51,0xa4,0x55,0xa4,0x5a,0xa5,0x5e,0xa5,0x63,0xa5,0x67,0xa5,
0x6b,0xa5,0x70,0xa6,0x74,0xa6,0x79,0xa6,0x7d,0xa6,0x82,0xa6,0x86,0xa7,0x8b,0xa7,0x8f,0xa7,0x93,0xa7,
0x98,0xa7,0x9c,0xa7,0xa1,0xa8,0xa5,0xa8,0xaa,0xa8,0xae,0xa8,0xb3,0xa8,0xb7,0xa8,0xbb,0xa9,0xc0,0xa9,
0xc4,0xa9,0xc9,0xa9,0xcd,0xa9,0xcd,0xa9,0xcd,0xa9,0xcd,0xa9,0xcd,0xa9,0xff,0xff,0xcd,0xa9,0xcd,0xa9,
0xc9,0xab,0xc6,0xac,0xc1,0xab,0xbc,0xaa,0xb6,0xab,0xb3,0xac,0xb3,0xb2,0xb3,0xac,0xad,0xac,0xaa,0xab,
0xa8,0xa9,0xa9,0xa5,0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xa0,0x82,0xa0,0x82,0xa0,0x82,0xff,0xff,0xa0,0x82,0xa4,0x82,0xa9,0x83,0xad,0x83,0xb2,0x84,0xb6,0x85,
0xb7,0x85,0xb7,0x85,0xb7,0x85,0xb7,0x85,0xb7,0x85,0xff,0xff,0xb7,0x85,0xb4,0x87,0xb1,0x8b,0xb0,0x8d,
0xb0,0x8d,0xb0,0x8d,0xff,0xff,0xb0,0x8d,0xad,0x91,0xab,0x96,0xa9,0x9a,0xa7,0x9f,0xa5,0xa3,0xa3,0xa8,
0xa1,0xac,0xa0,0xad,0xa0,0xad,0xa0,0xad,0xa0,0xad,0xa0,0xad,0xff,0xff,0x9d,0xb0,0x9a,0xb0,0x99,0xad,
0x99,0xa9,0x99,0xa9,0x99,0xa9,0xff,0xff,0x99,0xa9,0x9a,0xa4,0x9b,0xa0,0x9c,0x9b,0x9c,0x97,0x9d,0x92,
0x9e,0x8e,0x9e,0x8a,0x9f,0x85,0xa0,0x82,0xa0,0x82,0xa0,0x82,0xa0,0x82,0xa0,0x82,0xff,0xff,0xa0,0x82,
0xa0,0x82,0xa0,0x7d,0x9f,0x78,0x9c,0x77,0x9a,0x78,0x9a,0x7a,0x9a,0x7d,0x9b,0x80,0x9d,0x85,0x9f,0x87,
0x9c,0x83,0x99,0x7b,0x97,0x7a,0x95,0x7a,0x95,0x7c,0x95,0x7f,0x96,0x82,0x97,0x85,0x98,0x88,0x96,0x83,
0x95,0x80,0x93,0x7d,0x91,0x7e,0x91,0x81,0x92,0x83,0x94,0x87,0x93,0x85,0x90,0x80,0x8e,0x7f,0x8d,0x81,
0x8e,0x84,0x8f,0x86,0x8c,0x87,0x8b,0x8b,0x86,0x8d,0x81,0x8f,0x80,0x90,0x80,0x92,0x7d,0x93,0x7b,0x94,
0x7b,0x96,0x78,0x9a,0x75,0x9f,0x75,0xa3,0x76,0xa8,0x78,0xac,0x77,0xaa,0x75,0xa5,0x74,0xa4,0x71,0xa2,
0x6e,0xa2,0x68,0xa2,0x63,0xa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d,0xa9,0xff,0xff};
这个如果用步进电机扫描的话,就会显示出一副鸟的图形,可是却不知是如何得来的,有谁知道可否告知一下。
谢谢了!!
关键词:
图像,
二进制位值