Пример #1
0
 internal byte[] DownloadData(string cmd)
 {
     if (api == null)
     {
         throw new Exception("Rovio 尚未连接。");
     }
     return(api.DownloadData(cmd));
 }
Пример #2
0
 /// <summary>
 /// The basic command for acquiring Image.
 /// </summary>
 /// <returns>Bitmap</returns>
 public Bitmap GetImage()
 {
     byte[] buf = rovio.DownloadData("Jpeg/CamImg0000.jpg");
     return(Image.FromStream(new MemoryStream(buf)) as Bitmap);
 }