public static Image image() { Bitmap b = new Bitmap(100, 100); Graphics gdi = Graphics.FromImage(b); GDIGLContext ctxt = new GDIGLContext(gdi); ctxt.Create(new DisplayType(DisplayFlags.DRAW_TO_BITMAP, true), null); ctxt.Grab(); MyModel model = new MyModel(); model.Init(); model.Draw(); GL.glFinish(); ctxt.Dispose(); gdi.Dispose(); b.RotateFlip(RotateFlipType.RotateNoneFlipY); return(b); }