public SketchWindow(int width, int height)
:base()
{
InitializeComponent();
fBlackPen = new GDIPen(RGBColor.Black);
this.Size = new System.Drawing.Size(width, height);
this.Text = "Sketcher";
this.AllowDrop = true;
fPointList = new List<Point>();
// Create the backing buffer to retain the image
// Make it bigger than any likely displays
backingBuffer = GDIDIBSection.Create(1600, 1200);
GDIContext bufferContext = GDIContext.CreateForBitmap(backingBuffer);
bufferContext.ClearToWhite();
fBackingGraphPort = new GDIRenderer(bufferContext);
fRetainedGraphPort = new GraphPortDelegate();
fRetainedGraphPort.AddGraphPort(fBackingGraphPort);
fRetainedGraphPort.AddGraphPort(GraphPort);
CreateSession();
}