Example #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);
 }
Example #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);
 }
Example #3
0
 public void TestBogusUri()
 {
     WebsiteBitmap t = new WebsiteBitmap();
     Bitmap bmp = t.GetBitmapFromWeb(Guid.NewGuid().ToString());
 }