示例#1
0
        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);
        }
示例#2
0
        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);
            
        }