void DrawSurface()
{
tk.Begin ();
tk.StrokeColor = tk.FillColor = Color.Blue1;
tk.DrawRectangle (new Point (400, 200), 300, 200);
IContext oldContext = tk.Context;
ISurface surface = tk.CreateSurface (200, 200, TestImage);
using (IContext surfaceContext = surface.Context) {
tk.Context = surfaceContext;
tk.StrokeColor = tk.FillColor = Color.Black;
tk.FontSize = 16;
tk.DrawText (new Point (10, 90), 180, 20, "This is a surface");
tk.FillColor = new Color (0, 0, 0, 0);
tk.StrokeColor = Color.Blue;
tk.DrawRectangle (new Point (0, 0), 198, 198);
tk.Context = oldContext;
tk.End ();
tk.DrawSurface (surface, new Point (500, 200));
}
tk.Begin ();
tk.TranslateAndScale (new Point (400, 200), new Point (0.5, 0.5));
tk.DrawSurface (surface);
tk.End ();
surface.Dispose ();
}