void c_ImageLoad(object sender, HtmlRenderer.Entities.HtmlImageLoadEventArgs e) { System.Drawing.Image a; try { a = System.Drawing.Bitmap.FromFile(e.Src); } catch { throw new Exception("Trying to load external or unexisting image in HTML. Only local images are allowed"); } e.Callback(a); }