byte [,,] data = new byte[d,h,w]; int i=0; for (int z = 0; z < d; z++) { for (int y = 0; y < h; y++) { for (int x = 0; x < w; x++) { data[z,y,x]=bytes[i++]; } } }
bytes
index = (z*h+y)*w+x;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)