internal byte[] DownloadData(string cmd) { if (api == null) { throw new Exception("Rovio 尚未连接。"); } return(api.DownloadData(cmd)); }
/// <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); }