/// <summary> /// Constructor /// </summary> /// <param name="screen"></param> /// <param name="surfaceId"></param> /// <param name="width"></param> /// <param name="height"></param> public Surface(SimulatedScreen screen, ushort surfaceId, ushort width, ushort height, PixelFormat pixelFormat) { this.screen = screen; this.width = width; this.height = height; this.surfaceId = surfaceId; this.pixelFormat = pixelFormat; image = new Bitmap(width, height); imageGraphic = Graphics.FromImage(image); mapPoints = new List <Point>(); }
/// <summary> /// Constructor /// </summary> /// <param name="screen"></param> /// <param name="surfaceId"></param> /// <param name="width"></param> /// <param name="height"></param> public Surface(SimulatedScreen screen, ushort surfaceId, ushort width, ushort height, PixelFormat pixelFormat) { this.screen = screen; this.width = width; this.height = height; this.surfaceId = surfaceId; this.pixelFormat = pixelFormat; image = new Bitmap(width, height); imageGraphic = Graphics.FromImage(image); mapPoints = new List<Point>(); }