public Image GetImage() { byte[] data = RaidSimulator.GetData(Start, End); //File.WriteAllBytes(r.Next(100000) + ".jpg", data); //if (data.Length < 3 * 1024 * 1024) { MemoryStream ms = new MemoryStream(data); try { var i = Image.FromStream(ms); return(i); } catch { } } return(null); }
public Picture(RaidSimulator rs) { RaidSimulator = rs; }