194195196197198199200201202203204
index = (i * size) + j; } if (format == RawHeightMap.FORMAT_16BITBE) { heightData[index] = dis.readUnsignedShort(); } else { heightData[index] = dis.readUnsignedByte(); } } } dis.close(); }