public XnaGraphicsManager(int width, int height, Core.Graphics.PixelFormat format, GameWindow window, GraphicsDevice device)
{
if (device == null)
throw new ArgumentNullException("device");
_window = window;
_device = device;
_width = width;
_height = height;
PixelFormat = format;
_texture = new Texture2D(device, _width, _height);
_textureCursor = new Texture2D(device, 16, 16);
_palColors = new Color[256];
_colors = new Color[_width * _height];
_preferredAspect = (float)_width / _height;
}