Exemplo n.º 1
0
 public void TestLoadLocalHost()
 {
     WebsiteBitmap t = new WebsiteBitmap();
     Bitmap bmp = t.GetBitmapFromWeb("http://localhost/alert.htm");
     Assert.IsNotNull(bmp);
     Console.WriteLine("{0}:{1}", bmp.Width, bmp.Height);
 }
Exemplo n.º 2
0
 public void TestLoadLocalHostSnCoreWeb()
 {
     WebsiteBitmap t = new WebsiteBitmap();
     Bitmap bmp = t.GetBitmapFromWeb("http://localhost/SnCoreWeb/");
     Assert.IsNotNull(bmp);
     Console.WriteLine("{0}:{1}", bmp.Width, bmp.Height);
     bmp.Save("c:\\temp\\test.jpg", ImageFormat.Jpeg);
 }
Exemplo n.º 3
0
 public void TestBogusUri()
 {
     WebsiteBitmap t = new WebsiteBitmap();
     Bitmap bmp = t.GetBitmapFromWeb(Guid.NewGuid().ToString());
 }