本帖最后由 tryhi 于 2011-6-30 16:00 编辑
这一个5*8的像素组成的数字根据其中七点(不知道能不能用6点,反正我最少想出七点)判断出数字。
If $numx1 = 1 And $numx2 = 0 And $numx3 = 0 And $numx4 = 0 And $numx5 = 0 And $numx6 = 0 And $numx7 = 0 Then Return 0
If $numx1 = 0 And $numx2 = 0 And $numx3 = 0 And $numx4 = 1 And $numx5 = 0 And $numx6 = 1 And $numx7 = 0 Then Return 1
If $numx1 = 0 And $numx2 = 0 And $numx3 = 0 And $numx4 = 1 And $numx5 = 0 And $numx6 = 0 And $numx7 = 1 Then Return 2
If $numx1 = 0 And $numx2 = 0 And $numx3 = 0 And $numx4 = 0 And $numx5 = 0 And $numx6 = 1 And $numx7 = 0 Then Return 3
If $numx1 = 0 And $numx2 = 1 And $numx3 = 0 And $numx4 = 0 And $numx5 = 0 And $numx6 = 0 And $numx7 = 1 Then Return 4
If $numx1 = 1 And $numx2 = 1 And $numx3 = 1 And $numx4 = 0 And $numx5 = 0 And $numx6 = 1 And $numx7 = 0 Then Return 5
If $numx1 = 1 And $numx2 = 1 And $numx3 = 0 And $numx4 = 0 And $numx5 = 0 And $numx6 = 1 And $numx7 = 0 Then Return 6
If $numx1 = 0 And $numx2 = 0 And $numx3 = 1 And $numx4 = 1 And $numx5 = 0 And $numx6 = 1 And $numx7 = 0 Then Return 7
If $numx1 = 0 And $numx2 = 1 And $numx3 = 0 And $numx4 = 0 And $numx5 = 0 And $numx6 = 1 And $numx7 = 0 Then Return 8
If $numx1 = 1 And $numx2 = 0 And $numx3 = 0 And $numx4 = 1 And $numx5 = 1 And $numx6 = 0 And $numx7 = 0 Then Return 9
|