예제 #1
0
            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);
            }
예제 #2
0
 public Picture(RaidSimulator rs)
 {
     RaidSimulator = rs;
 }