我需要创建存储在字典中的值的BitMap。我从来没有真正使用图形的东西,所以我不知道。
public struct OrderKilled
{
public Char[] TimeStamp;
public Char[] FLAG_MSG;
public Char[] Symbol;
public Char[] OrderID;
public static OrderKilled FromArray(byte[] bytes, int index)
{
using (var reader = new BinaryReader(new MemoryStream(bytes, index, 28)))
{
var s = default(OrderKilled);
s.TimeStamp = reader.ReadChars(8);
s.ITCH_MSG = reader.ReadChars(1);
s.Symbol = reader.ReadChars(10);
s.OrderID = reader.ReadChars(9);
return s;
}
}
}
private Dictionary<string, OrderKilled> OrdKilledDB = new Dictionary<string, OrderKilled>();
我想将字典的值转换为位图。我不确定如何实现这一目标。
谢谢大家