This topic describes how to get started with Graphics Mill for .NET when creating an ASP.NET application. It provides step-by-step instructions how to create a simple Web Forms application which loads an image and displays it.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load BitmapViewer1.Bitmap.Load(Server.MapPath("Photos/Sample.jpg")) End Sub
private void Page_Load(object sender, System.EventArgs e) { BitmapViewer1.Bitmap.Load(Server.MapPath("Photos/Sample.jpg")); }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
This step is necessary as a workaround of a problem with scrollbars which occurs in Internet Explorer 6. This problem is caused by a bug in Internet Explorer which misbehaves with certain XHTML code. It does not occur on other browsers such as Firefox, Mozilla, Safari, and Opera.
After you run the application and load some image, it will be looking like this screenshot: