【发布时间】:2013-12-26 06:40:47
【问题描述】:
我在 C# 中有一个字节数组:
byte[] bmp = File.ReadAllBytes("D:\\x.bmp");
我想在DataGridView 中表示如下(三列 - 第一列偏移量,第二列 sizebyte,第三列描述,行是来自x.bmp 的字节数组的元素):
0 2 signature
2 4 size BMP
6 2 reserved
8 2 reserved
10 4 offset start image
14 4 must 40
18 4 width
22 4 height
26 2 must 1
我可以在 C# 中使用DataGridView 以这种方式表示字节数组吗?
【问题讨论】:
标签: c# arrays datagridview bytearray bmp