private unsafe void Initialize(int width, int height) { _width = width; _height = height; _pixelsCount = _width * _height; _bytesCount = _pixelsCount * 4; _buffer = new int[_pixelsCount]; _renderer = new PixelBufferManagedRenderer(this); //_graphics = new PixelBufferGraphics(this); _graphics = new PixelBufferManagedGraphics(this); }