发表于: 2008-11-11 11:17:53
怎么样将bmp黑白图,转换成点阵数组形式???
例如下面转换后的数组
例如:这里是c语言的数组
unsigned char sellpixel[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 240, 0, 0, 0, 0, 0, 3, 255, 255, 0, 0, 0,
0, 0, 15, 255, 255, 192, 0, 0, 0, 0, 63, 255, 255, 240, 0, 0, 0, 0, 127, 255, 240, 248, 0, 0, 0, 1, 255, 255, 224, 126, 0, 0,
0, 3, 255, 255, 224, 127, 0, 0, 0, 15, 255, 255, 0, 7, 192, 0, 0, 31, 255, 254, 0, 1, 224, 0, 0, 63, 255, 252, 0, 0, 240, 0,
0, 127, 255, 252, 0, 0, 248, 0, 0, 127, 255, 224, 0, 0, 56, 0, 0, 255, 255, 192, 0, 0, 12, 0, 1, 255, 255, 192, 0, 0, 14, 0,
1, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 1, 0, 4, 0, 96, 0, 0, 56, 0, 128, 4, 0, 120, 0, 7, 57, 192, 128,
8, 0, 56, 0, 15, 57, 224, 64, 8, 0, 48, 0, 14, 59, 128, 64, 16, 0, 48, 0, 28, 63, 12, 32, 16, 0, 48, 0, 60, 60, 12, 32,
16, 0, 48, 224, 124, 120, 12, 32, 16, 96, 48, 112, 205, 216, 60, 32, 32, 112, 48, 115, 140, 15, 248, 16, 32, 112, 48, 112, 12, 0, 0, 16,
32, 112, 51, 224, 12, 63, 0, 16, 32, 112, 254, 224, 7, 231, 0, 16, 32, 255, 240, 224, 6, 7, 0, 16, 32, 248, 48, 0, 6, 119, 0, 16,
32, 0, 48, 0, 6, 119, 0, 16, 32, 0, 48, 0, 6, 119, 0, 16, 32, 96, 48, 224, 6, 103, 0, 16, 32, 48, 48, 112, 14, 103, 0, 16,
16, 48, 48, 112, 6, 103, 0, 32, 16, 48, 55, 240, 0, 248, 0, 32, 16, 99, 252, 112, 1, 206, 0, 32, 16, 255, 128, 112, 1, 143, 128, 32,
8, 248, 0, 112, 7, 7, 192, 64, 8, 96, 0, 96, 14, 3, 192, 64, 4, 0, 0, 0, 56, 1, 192, 128, 2, 0, 0, 0, 0, 0, 1, 0,
1, 192, 0, 0, 15, 255, 254, 0, 0, 192, 0, 0, 15, 255, 252, 0, 0, 112, 0, 0, 31, 255, 248, 0, 0, 124, 0, 0, 255, 255, 248, 0,
0, 60, 0, 0, 255, 255, 240, 0, 0, 30, 0, 1, 255, 255, 224, 0, 0, 15, 128, 3, 255, 255, 192, 0, 0, 3, 248, 31, 255, 255, 0, 0,
0, 1, 248, 31, 255, 254, 0, 0, 0, 0, 124, 63, 255, 248, 0, 0, 0, 0, 63, 255, 255, 240, 0, 0, 0, 0, 15, 255, 255, 192, 0, 0,
0, 0, 3, 255, 255, 0, 0, 0, 0, 0, 0, 63, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 170, 170, 170, 170, 170, 170, 160,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0