How to initialize surface variable in sdl.net?
问题 I'm working with Visual C# 2010 Express and SDL.net graphics library. I try to paint on winform with SurfaceControl Class, and can't create an empty surface to draw on. I found only one working example with bitmap, although there is such method in http://cs-sdl.sourceforge.net/apidocs/html/class_sdl_dot_net_1_1_graphics_1_1_surface.html Surface (int width, int height) // "Create surface of a given width and height."` My code: private void surfaceControl1_Click(object sender, EventArgs e) {