static void Build3() { FileLocation fl = new FileLocation(@"E:\Desktop\grad.raw"); ContentBinaryReader br = new ContentBinaryReader(fl); const int DW = 36 * 32; const int DH = 14 * 32; Apoc3D.BitTable b = new Apoc3D.BitTable(DW * DH); for (int i = 0; i < DH; i++) { for (int j = 0; j < DW; j++) { ushort v = br.ReadUInt16(); b.SetBit(i * DW + j, v > 32767); } } br.Close(); b.Save(File.Open(@"E:\Desktop\grad.bit", FileMode.OpenOrCreate)); }