Convert byte[] array to byte[,]
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, How to convert single dimention byte array to two dimensional byte array. Advance thanks
-
Hi, How to convert single dimention byte array to two dimensional byte array. Advance thanks
Hello, I think fatsest way would be a loop!
byte\[\] b1 = new byte\[5\]; b1\[0\]=1; b1\[1\]=2; b1\[2\]=3; b1\[3\]=4; b1\[4\]=5; byte\[,\] b2 = new byte\[2, b1.Length\]; for(int x=0;x < b1.Length;x++) { b2\[0,x\]=b1\[x\]; }
All the best, Martin -- modified at 6:58 Wednesday 30th May, 2007